following is my code working well in chrome.
<body>
<a href="javascript: sam.save();">hehe</a>
<script>
var sam = {
save : function()
{
alert("here")
return false;
}
}
</script>
when in run in firefox the page redirects and false is displayed on the screen with the adress bar content like in the picture

firefox version is 9.0.1
suggestions and circumvents please…
The code you cite can’t possibly produce the behavior you observe. The observed behavior would only happen if
sam.save()returnedfalse, whereas the quoted code returnsundefined. What does your actual complete code look like?Edit: The useful answer was in a comment. I put it here to make it easier to find.