A
alvin.yk
Hi,
Normally, a piece of code such as
<a href="http://www.yahoo.com" onclick="alert('hello');return
false;">link</a>
will stop the browser from actually going to href's destination.
However, this is not the case with the IE7 I am using. What has
changed?
IE7 version: 7.0.5730.11. Update versions: 0
Has anyone bumped into this problem before? How do I get around it?
Thanks.
Testcase:
-----------------------
<html>
<body>
<p> hello1 </p>
<a href = 'http://www.yahoo.com' onclick="alert('clicked');return
false;">my test link</a>
</body>
</html>
Normally, a piece of code such as
<a href="http://www.yahoo.com" onclick="alert('hello');return
false;">link</a>
will stop the browser from actually going to href's destination.
However, this is not the case with the IE7 I am using. What has
changed?
IE7 version: 7.0.5730.11. Update versions: 0
Has anyone bumped into this problem before? How do I get around it?
Thanks.
Testcase:
-----------------------
<html>
<body>
<p> hello1 </p>
<a href = 'http://www.yahoo.com' onclick="alert('clicked');return
false;">my test link</a>
</body>
</html>