Feedback on: irt.org FAQ Knowledge Base Q1073
Worth:
Not worth reading
Comments:
This workaround does not seem to work. I tried the following and still had the same problem.
<html>
<head>
<script>
function click()
{
alert("testing")
}
</script>
</head>
<body>
<A HREF ='javascript:click()' onclick return false >
<img src="image.gif" border=0>
</a>
</body>
</html>
I also tried writing a function which returned false and putting that in the onClick event handler and that didn't work either
Comments:
could you give example in more details. I am writing my first piece code of javascript.
I tried both the following but did not work.
(1) <a href="Javascript:resetForm()" onClick="resetClick()">
function resetClick() {
return false; } glass cursor still shows
(2) <a href="Javascript:resetForm()" >
function resetForm() {
....
return false; } this will display a screen that display "false"