Subj : Re: Javascript email hiding problem To : Stian Lund From : Brendan Eich Date : Tue Oct 21 2003 05:29 pm Stian Lund wrote: >Hello, >On my website, I'm using a javascript routine to hide my proper email >address from the evil spambots. This page displays properly in MSIE 6 and >Opera 7.21, but renders totally wrong in Mozilla 1.5. Im using windows >2000 sp4. > > > Wrong newsgroup, this is all about DOM level 0 and JS-in-HTML issues. >Here's the page: >http://stian.freeshell.org/contact.php > >I'm a total newbie to javascript, and there's probably something minor >I've overlooked, like escaping the quote marks or something. It looks to >me like Mozilla doesn't understand the last two lines, and thinks they >are 'outside' the script somehow, but this is only a guess... > >The script looks like this: > > > >Of course, the domain var is on only one line. > >Hope anyone can spot what I'm doing wrong here... > > One suggestion: don't document.write a bunch of times, do concatenate strings and call document.write once. If that fixes the bug, then you've found a Mozilla DOM bug to-do with how document.write interacts with the HTML parser. The