Subscribe Now!

Enter your email address:

Monday, January 31, 2011

Display alert box on clicking link In JQuery

<html>
<head>
<script type="text/javascript" src="jquery-1.4.2.js">
</script>

<script type="text/javascript">
$(document).ready(function(){
$("a").click(function(event){
alert("Redirecting you to jQuery.com!");
});
});
</script>
</head>
<body>
<a href="http://jquery.com/">
Click here to know about jQuery</a>

</body>
</html>

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...