August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onClick="command"
The onClick event handler for the Link object is used to handle the event when the mouse cursor is clicked on the link.
Listing 7.364 shows how to determine a mouse click using the onClick event handler.
<html>
<head>
<title> Using the onClick event handler of the Link object</title>
</head>
<body>
Click the link.
<form name="form1">
<a href=http://www.mcp.com:80/foo?something#foobar onClick='alert("You clicked
the link")'>
http://www.mcp.com:80/foo?something#foobar</a>
<br><br>
</form>
</body>
</html>
|
Read now
Unlock full access