PROPERTY:  Button::value


This property sets or returns the button's Value attribute. This is the text that is actually displayed on the Button face.

The following code uses the button's onClick event handler to call a JavaScript function that changes the Value attribute of the Button..

<form name="myForm" title="myForm">
<INPUT NAME="myButton" TYPE="button" VALUE="Click to change value" onClick=valChange()>

<script language="javascript">
function valChange()      {
     document.myForm.myButton.value="Value has changed"

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information