Hello!
I've implemented a small JavaScript on my webpage that is supposed to protect my e-mail adress from e-mail harvesters and mailbots. I followed directions to the letter in how to add it to my webpages, but when I look at the webpage in a browser window, I'm seeing a new e-mail link in the top left corner of the page.
Can someone help, perhaps?
Here's the JavaScript code:
And here's the footer on my webpage:Code:<script language="JavaScript"><!-- var name = "info"; var domain = "froso.dk"; document.write('<a href=\"mailto:' + name + '@' + domain + '\">'); document.write(name + '@' + domain + '</a>'); // --></script>
I've tried testing with removing the JavaScript above, and that seems to remove the odd link in the top left corner. Why does it get created?Code:<!-- Footer Start --> <div id="footer"> Frøsø Køkkenfornyelse · Oldenvej 7 · 3490 Kvistgård<br/> Tlf.: 4917 7728 · Fax: 4917 7738 · E-mail: <a href="removed for security" class="footerlink">removed for security</a></div> <!-- Footer End -->
PS: Also, I've noticed that whenever I click on the 'mailto:' e-mail link, the browser opens a new 'blank' window before proceeding to open a new mail in my mail software (in my case, Microsoft Outlook).
How do I change that so that the new pop-up window doesn't appear?
Cheers,
Bassa



Reply With Quote




Bookmarks