home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / Javascript / JavaScriptEditor / jse_en28.exe / %MAINDIR% / Tutorial / button.js < prev    next >
Encoding:
JavaScript  |  2001-09-10  |  243 b   |  10 lines

  1. //Javascript Editor 2 Tutorial
  2. //Use Button
  3.  
  4. function pushbutton() {
  5.        alert("Hello, you just pressed the button.");
  6.   }
  7.   
  8. document.writeln("<input type=\"button\" name=\"pushme\" value=\"Push me\" onclick=\"pushbutton()\">");
  9.  
  10.