Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

onClick and MouseOver event examples


-- onClick and onMouseOver event samples (link events)
< html >
< head >
< title > Link Event Example </ title >
</ head >
< body >
< h1 > Link Events </ h1 >
< a href = "#" onClick = "alert('You clicked me!');" > Click on me !</ a >< br >
< a href = "#" onMouseOver = "alert('You moused me!');" > Mouse over me !</ a >< br >
</ body >
</ html >