Re: Re - previous post from MVP 'secure email addr in external js'

From: Steve Easton (admin_at_95isalive.com)
Date: 06/12/04


Date: Sat, 12 Jun 2004 09:35:14 -0400

I've tried it in both IE and Mozilla.

Try changing the method used to call the script by removing the language=javascript and just using

<script type="text/javascript" src="external.js">

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
"Larry" <paxman@sympatico.ca> wrote in message news:#fzxoYDUEHA.2028@TK2MSFTNGP11.phx.gbl...
> Chris - thanks for the enkoder idea. I've used it in other webs but I thought I'd try this idea to
see if was easier to maintain.
>
> Steve - I moved the email addresses into the common js file. No joy - email still opens in a blank
window in Mozilla. If you use Outlook Express did you check the email link from IE & does it work?
>
> I  have a gut feeling it's the 'open(href="mailto:' statement  in the js that's cloning a new
window .  Would there be an option that forces the email to open on top of the parent page?
>
> Larry
>
> Steve Easton wrote:
>
> You're calling two scripts which can cause a problem.
> Combine the scripts functions into one external file and make it a master external .js file
> Everything in the "email" file can be added to the main file  and then you only call one script
> file.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Larry" <paxman@sympatico.ca> wrote in message news:ugzpJpAUEHA.3984@TK2MSFTNGP09.phx.gbl...
>   A previous post gave information on a scheme for hiding email addresses
> from spiders in a js file. I've applied the idea and it works fine
> except that in Mozilla when the button is selected a new blank window is
> opened as well as the email form which is a bit annoying for the user as
> they've goto close the window to go back to the site.
>
> I cannot check  the button in IE as I've Mozilla set as default. In
> Opera it doesn't seem to work at all.
>
> See: http://www.bed-and-breakfast-travel.com/infopages/contactus.html
>
> Example of js file contents:
>
> function bnbweb(){
> open(href="mailto:webmaster@bed-and-breakfast-travel.com?subject=Website
> Information Request");
> }
>
> Have I run into the browser incompatible thingie again?
>
> Larry
>
> --
>        For your security and peace of mind ALL emails are automatically scanned
>         with the latest Norton AV Virus Definitions. Not that I have any virus'
>            but why not be careful! I get virus signature updates regularly!
>
>                  A Belt and Suspenders are the best security invented!
>
>
>
>
> --
>        For your security and peace of mind ALL emails are automatically scanned
>         with the latest Norton AV Virus Definitions. Not that I have any virus'
>            but why not be careful! I get virus signature updates regularly!
>
>                  A Belt and Suspenders are the best security invented!