Monday, September 10, 2012


MouseUp And mouseDown Events

<html>
<head>
<title>mouseUp And mouseDown Events</title>
<script language="JAVASCRIPT">
function func1()
{
location.href="event1.html"
}
function func2()
{
document.alinkColor="#ff0000"
}
function func3()
{
document.alinkColor="#0000ff"
}
</script>
</head>
<body>
<a href="event1.html" onClick='return false' onDblClick='func1()'
onMouseDown='func2()' onMouseUp='func3()' >Click Me </a> 
</body>
</html>



0 comments:

Post a Comment