Click to See Complete Forum and Search --> : onHelp


Dumbass
11-17-2003, 04:22 AM
<script for="document" event="onhelp">

(script)

</script>

I want a function to occur when the user hits F1. I can get this function to run, but I can't stop the default Help window in IE popping up aswell. Anyway to stop that?

Gollum
11-17-2003, 04:47 AM
try adding

event.returnValue = false;

to the end of your onhelp script

Dumbass
11-17-2003, 05:06 AM
Thanks :)