><a href="foo.html" onclick="return foo();" >onkeypress="return foo();"> >--------------- > >function foo() { > >if (!document.getElementById) { return true; } > >// Blah, blah, blah... > > return false; >} Oops. Mark already said it. Guess I'm slow on the uptake... 8I M