Changes

Jump to: navigation, search

A Simple JavaScript Example

332 bytes added, 19:21, 9 April 2007
no edit summary
</pre>
When loaded into a web browser the page will appear as before, but this time a push button is visible in the page which, when pressed, will display an alert dialog containing the words "Goodby cruel world". In order to make this happen we have used the HTML ''<form>'' and ''<input>'' tags to make the button visible and combined this with the onClick event handler. We've specified that when the onClick event of the button is triggered (i.e when the user clicks on it) then the JavaScript to display the alert dialog should be executed.

Navigation menu