[thelist] safe js

Mark Kennedy mark at eurogamer.net
Wed Mar 17 11:18:22 CST 2004


>So, i've got 1 and 2 covered nicely and need help with 3. Is there a way
>i can make old browsers ignore the onclick and fallback to the href?

<a href="foo.html" onclick="return foo();"
onkeypress="foo();return false;">

--------------- 

function foo() {

if (!document.getElementById) { return false; }

// Blah, blah, blah...

}

You big noob ;-)

Regards

Mark




More information about the thelist mailing list