Skip to main content

Bug Tracker

Side navigation

Ticket #5835: onclick.html
File onclick.html, 0.4 KB (added by superware, January 16, 2010 10:36AM UTC)
<html>
<head>
	<title>IE onclick + live</title>
</head>
<body>
	<a href="http://jquery.com/" onclick="alert('clicked'); return false;">link</a>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
	<script type="text/javascript">
		$(".whatever").live("click", function(event) {
			event.preventDefault();
		});
	</script>
</body>
</html>

Download in other formats:

Original Format