|
|
JavaScript Demos:
|
|
Displays an alert box on loading. Discussion.This is about as simple as a JavaScript example can get, just four lines of HTML. The onLoad action is so limited, there is no need to include a SCRIPT section. If the page is loaded with a JavaScript-incompatible browser, or, if JavaScript is turned off in the browser, then the page displays a notice and no alert occurs. Recall that with Netscape 3.x you turn off/on JavaScript via Options -> Network Preferences -> Languages. |
|