Tuesday, July 23, 2013

Event Handlers

These will cause an action to occur when the user triggers the event handler.

Event handlers have built in keywords. They don't need to be in <script> tags. Event handler can go in forms: 

<form><input type="button" value="Hit me with your best shot" onClick="alert('You missed');document.write('Im gonna git you Sucka')"</form>

links: okay, these suck because chrome has disabled most of these

<boody onLoad="alert('Hello Dave');">

<a href="http://Google.com";">Some Link</a>
</boody>
|
|
|
|
>
More on this later.



















No comments:

Post a Comment