oops, make that ><a href="foo.html" onclick="return foo();" >onkeypress="return foo();"> >--------------- > >function foo() { > >if (!document.getElementById) { return true; } > >// Blah, blah, blah... > > return false; >} /me blushes. Mark