Loading
View RSS Feed

Angad Kumar Shukla's blog

Event Handling in JavaScript - OnkeyUp, OnKeyDown, OnMouseOut, OnMouseOver, OnLoad

Rating: 2 votes, 3.00 average.





OnkeyUp



Code:
<html>
<head>
	<script type="text/javascript">
	function welcome()
	{	
		alert("welcome to i.t.")
	}
	</script>
</head>
<body onKeyup="welcome()">

</body>
</html>

OnKeyDown

onkey down event after pressing key.bmp

onkey down event before pressing key.bmp

Code:
<html>
<head>
	<script type="text/javascript">
	function welcome()
	{	
		alert("welcome to i.t.")
	}
	</script>
</head>
<body onKeydown="welcome()">

</body>
</html>

OnMouseOut


onmouse out when mouse point is on browser.bmp

onmouse out when mouse pointer is outside browser.bmp

Code:
<html>
<head>
	<script type="text/javascript">
	function welcome()
	{	
		alert("welcome to TECHNO INDIA")
	}
	</script>
</head>
<body bgcolor="red" onMouseOut="welcome()">
</body>
</html>

OnMouseOver


onmouse over.bmp

Code:
<html>
<head>
	<script type="text/javascript">
	function welcome()
	{	
		alert("welcome to i.t.")
	}
	</script>
</head>
<body onMouseover="welcome()">
<img src="DCS_015.jpg" onMouseOver="welcome()" >
</body>
</html>


OnLoad


Attachment 352

Code:
<html>
<head>
	<script type="text/javascript">
	function welcome()
	{	
		alert("it is on load value....welcome to i.t.")
	}
	</script>
</head>
<body bgcolor="red" onLoad=welcome()>

</body>
</html>

Submit "Event Handling in JavaScript - OnkeyUp, OnKeyDown, OnMouseOut, OnMouseOver, OnLoad" to Digg Submit "Event Handling in JavaScript - OnkeyUp, OnKeyDown, OnMouseOut, OnMouseOver, OnLoad" to del.icio.us Submit "Event Handling in JavaScript - OnkeyUp, OnKeyDown, OnMouseOut, OnMouseOver, OnLoad" to StumbleUpon Submit "Event Handling in JavaScript - OnkeyUp, OnKeyDown, OnMouseOut, OnMouseOver, OnLoad" to Google

Updated 12-04-2011 at 06:37 PM by Harsh

Categories
Web Design

Comments




Disclaimer: Users of techforum4u.com are responsible for ensuring that any material they post (article, blog posts, images or other mulitimedia content) does not violate or infringe upon the copyright, patent, trademark, or any personal or proprietary rights of any third party, and is posted with the permission of the owner of such rights.Anyone who violates these rules may have their access privileges removed without warning.