<p> INTRODUCTION TO JAVASCRIPT – EVENTS AND EVENT HANDLING – EXERCISE 13</p><p><!doctype html> <head> <title></title> </head> <script> <!-- function changeBackground(strColour) { document.bgColor=strColour; } //--> </script> <body> Click a button to change the background page colour. <form> <input type="button" value="yellow" onmouseup= "changeBackground('yellow')"/> <input type="button" value="blue" onmousedown= "changeBackground('blue')"/> <input type="button" value="white" onmouseup= "changeBackground('white')"/> <input type="button" value="green" onmousedown= "changeBackground('green')"/> <input type="button" value="cyan" onmouseup= "changeBackground('cyan')"/> </form> </body> </html></p><p>0ee1fbecd38bf4ab1da299159b601c33.doc Version 1 Page 1 of 1</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages1 Page
-
File Size-