<html>
<head>
<script language="JavaScript1.2">
<!--
var counter = 0;
window.captureEvents(Event.CLICK);
window.onclick = myClickHandler;
function myClickHandler{
window.document.myForm.myText.handleEvent;
}
function changeText(){
document.myForm.myText.value = counter++;
}
function releaseClick(){
window.routeEvent(Event.CLICK);
}
-->
</script>
</head>
<body>
<form name="myForm">
<input type=TEXT size=2 value="" name="myText" onClick='changeText()'>
<a href="http://www.java2s.com" onMouseDown='window.routeEvent(Event.CLICK)'>Click Here!</a>
</form>
</body>
</html>
|