Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript
// get the button object
var myButton = getObj("my_button");

// assign anonymous function as an event handler
addEvent(myButton, "click", function ()
{
     alert(*"Hello There!");
});