PDA

View Full Version : Open Window in Email Message


craigolson
08-10-2002, 01:24 PM
I have this very simple JavaScript that I frequently used to open web pages in emails. I recently lost it and tried to reconstruct it, but something is missing. Can you tell me what?

<script language = “javascript”>
<!--
window.open(“http:/www.craigshomes.com/registration.html");
//-->
</script>

Thanks much.

Regards,

Craig Olson

PauletteB
08-10-2002, 02:04 PM
Need another slash in http://

craigolson
08-10-2002, 10:10 PM
Paulette,

Did you try the script with the extra slash in http:/? It doesn't work. I realized the mistake in the script but forgot to change it before sending the email. Any other ideas as to what might be wrong?

Regards,

Craig Olson

<script language = “javascript”>
<!--
window.open(“http://www.craigshomes.com/registration.html");
//-->
</script>

kansel
08-11-2002, 01:29 AM
You appear to be using 'smart quotes' which I don't think JavaScript recognizes. Try using either a singlequote (') or a doublequote (") character as a string delimiter.

<script language = "javascript">
<!--
window.open("http:/www.craigshomes.com/registration.html");
//-->
</script>

If that doesn't clear it up, let me know because I can't see anything else wrong with this script.

craigolson
08-11-2002, 08:20 PM
Thanks for your suggestion regarding the "smart quotes". I gave your idea a try, but it doesn't seem to work. There is one mistake in my script, and that is the lack of a double slash after "http:" in the URL, however, I have already corrected that. I wonder if it has to do with the difference between Microsoft Outlook, which I am now using, and Netscape Communicator, which I was using until just lately.

Best Regards,

Craig Olson