-
Lab 1: Utilize the onMouseOver event handler with a link to bring up an alert.
-
Page 1
-
Source:
<a href="page1.html" onmouseover="alert('Donīt do it!')">Page 1</a>
-
Lab 2: Utilize the onMouseOver event with a link to change the status bar.
-
Page 2
-
Source:
<a href="page2.html" onmouseover="window.status='This is a cool page!'; return true">Page 2</a>
-
Lab 3: Utilize the event handler to onClick event handler to show an alert box.
-
Page 3
-
Source:
<a href="page3.html" onclick="alert ('Itīs a bad page!'); return false">Page 3</a>
-
Lab 4: Utilize the event handler to show a confirmation box.
-
Page 4
-
Source:
<a href="page4.html" onclick="return confirm ('Are you sure?')">Page 4</a>