DOM Demo



.onclick

Click on this div to make it RED!

.onmouseover and .onmouseout

Hover over this div to make it purple, and take your mouse off to see it become green again!

.onkeyup

Enter something in the textbox, and see the text to the right of it change!

Watch me change!

.onchange

Enter something in the textbox, and then click away to see the text to the right of it change!

Watch me change!

.onfocus and .onblur

Click on the textbox, and then click away from the textbox, and see how the text in the textbox changes!