Introduction to Javascript Events and Event Handling Exercise 13

Introduction to Javascript Events and Event Handling Exercise 13

<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>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us