alerts.html 471 B

12345678910111213141516171819
  1. <html>
  2. <head>
  3. <title>Testing Alerts</title>
  4. </head>
  5. <body>
  6. <h1>Testing Alerts and Stuff</h1>
  7. <div id="text"></div>
  8. <p>This tests alerts: <a href="#" id="alert" onclick="alert('cheese');">click me</a></p>
  9. <p>This is a test of a prompt: <a href="#" id="prompt" onclick="alert(prompt('Enter your name'));">test prompt</a></p>
  10. <p>This is a test of a confirm: <a href="#" id="confirm" onclick="alert(confirm('Are you sure?'));">test confirm</a></p>
  11. </body>
  12. </html>