Breaking News
yeni film izle hd film seyret film izle

Onmouseup events In Java Script

This event occurs when the user clicks on some specified object and releases the mouse key this event gets fired. The time between the clicking and the releasing the key is the time of fire of this event.
 
Example:
 
<html>

<head>

<title>events </title>

</head>

<body bgcolor=green text=”white” onmousedown=”ff()” onmouseup=”ff1()”>

<h4 align =center> Please Drag the mouse on the web page anywhere you want</h4>

<script>

var x,y,x1,y1 function ff()

{

x=event.screenX y=event.screenY

}

function ff1()

{

x1=event.screenX y1=event.screenY alert(“You brought mouse down at : X “+x+ ” Y: “+y+ ” and brought it up at X:” +x1+” Y: “+y1)

}

</script>

</body>

</html>

Check Also

Functions Returning Values In Java Script

Function is a set of statements recognized by a name and can be used as …