[thelist] Javascript : cancel bubble with Safari

Christian Heilmann codepo8 at gmail.com
Tue Feb 14 01:00:44 CST 2006


> This seems to work on Firefox and IE, but in Safari the links just
> don't work, and only the onclick on the <tr> works.

It is a Safari problem, it doesn't quite get the event bubbling. That
is why you normally use addEvent and add an extra DOM1 onclick for
Safari.

boxnav.addEvent(lis[i],'click',boxnav.navigate,false);
lis[i].onclick=function(){return false;} // Safari

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list