Changes

Jump to: navigation, search

A Simple JavaScript Example

1 byte added, 17:22, 12 June 2007
no edit summary
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 "Goodbye 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.
 
<hr>

Navigation menu