Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Button::value


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..

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

<script type="text/javascript">
function valChange()      {
     document.myForm.myButton.value="Value has changed"
}
</script>
</form>

 


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