SYMPTOMS
In scripting, you can signal to the browser that you have handled an event by returning
true from within the event handler function. If you are mousing over a link, for example, and want to replace the text that appears in the window's status bar, you would return
true from your onmouseover handler in order to prevent Microsoft Internet Explorer from overwriting your custom status text with the URL link:
<SCRIPT>
function setStatus() {
window.status = "Go to this awesome site!";
return true;
}
</SCRIPT>
<a href="http://www.microsoft.com/" onmouseover="setStatus();">Click Me</a>
While such canceling of events might appear to work fine in Microsoft Internet Explorer 4, it sometimes breaks in Internet Explorer 5, even though the event handler function is returning
true. For the example in this section in Internet Explorer 5, you will see the HREF text appear in the status window instead of your custom message.