When the user click on the specific item the onclick event fires.Include there script code into there head section
<html>
<head><title>PRATICE</title>
<script type="text/javascript">
<!--
function fnfn()
{
alert("This is On key press Event");
}
//-->
</script>
</head>
<body>
<input type="button" value="click" onclick="fnfn()">
</body>
</html>
0 Comments