Assignment 011

HTML Tag Events

Most objects have events, not just HTML controls. For example tags such as table, tr, td, a, and strong also have events.

The following tr tags, in the table below, utilize the onMouseOver and onMouseOut events to change the color of the row as the mouse moves over the row and out of the row.

1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18
19 20 21
22 23 24

Another example is the link below. Here the < a > tag uses the onMouseOver tag to change the location of the Web browser. Moving the mouse over the link automatically takes you to Yahoo without having to click the link.

Yahoo

The final example is using is the onMouseOver and onMouseOut event of the < strong > tag to change the bgcolor property of the document. Moving over the words "Change Color" will change the document color to green or blue

Change Color