home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-10-16 | 1000 b | 32 lines | [TEXT/JyWs] |
- <html><head>
- <title>JavaScript Alert</title>
- </head>
- <body bgcolor="FFFFFF" text="000000" onLoad="window.alert('Welcome!');">
- <h1>JavaScript Alert</h1>
-
- <b>This page contains an example of a link that displays an alert</b>
- <p>
- <a href="#"
- onClick="window.alert('This is a special message to you!');"
- onMouseOver="window.status='This is not a regular link'; return true">Example</a> of a link displaying an alert dialog.</p>
-
- <hr>
- <b>How to use:</b>
- <p>
- Use something like this inside the contents of your page to create a link that will display an alert.</p>
-
- <pre><A HREF="#"
- onClick="window.alert('This is a special message to you!');"
- onMouseOver="window.status='This is not a regular link'; return true">Example</A>
- of a link displaying an alert dialog.</pre>
- <hr>
- <p>
- You can also use the following Body tag:</p>
-
- <p><code><BODY onLoad="window.alert('Welcome!');"></code></p>
-
- <p>to display an <blink>annoying</blink> alert every time the page is loaded.
-
- </body>
- </html>
-