trick 1 DIV Example Click to turn this text red. use this html code for the trick above.<HTML><HEAD><TITLE>DIV Example</TITLE><SCRIPT LANGUAGE = "javascript">function change() {document.all.heading.style.color = "red";}</SCRIPT></HEAD><BODY><DIV ID=heading STYLE="color: blue" onclick="change()"><H1> Click to turn this text red. </H1></DIV><BODY></HTML>
trick 1
use this html code for the trick above.
<HTML><HEAD><TITLE>DIV Example</TITLE><SCRIPT LANGUAGE = "javascript">function change() {document.all.heading.style.color = "red";}</SCRIPT></HEAD><BODY><DIV ID=heading STYLE="color: blue" onclick="change()"><H1> Click to turn this text red. </H1></DIV><BODY></HTML>