topical media & game development

talk show tell print

basic-javascript-06-ch6-examp3.htm / htm



  <html>
  <head>
  <script language="JavaScript" type="text/javascript">
  function myButton_onmouseup() 
  {
     document.form1.myButton.value = "Mouse Goes Up"
  }
  function myButton_onmousedown() 
  {
     document.form1.myButton.value = "Mouse Goes Down"
  }
  </script>
  </head>
  <body>
  <form name=form1>
     <input type='button' name='myButton' value=' Mouse Goes Up '
     onmouseup="myButton_onmouseup()"
     onmousedown="myButton_onmousedown()">
  </form>
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.