Javascript for Pop-Up to Work in E-Mail Client

R

rszebras

I created the following javascript pop-up (using the behaviors pop-up window
feature, etc.) to work in an e-mail newsletter we send to clients. Here is
the relevant code:

href="javascript://www.mysite.net/sample_1.htm">
<img border="0" src="http://www.mysite.net/images/sample_1.jpg" width="201"
height="167" align="right" vspace="4" onclick="FP_openNewWindow('400', '325',
false, false, false, false, false, false, 'sampleone',
/*href*/'http://www.mysite.net/sample_1.html')"></a>

If I am using Internet Explorer to test my e-mail page, the pop-up works
just fine. However, when I test it in Outlook it doesn't work. A pop-up
does come up but the content doesn't display. The title bar in the pop-up
displays the following 'javascript://www.mysite.net/sample_1.htm' instead of
'http://www.mysite.net/sample_1.html'

I can of course just use 'http://www.mysite.net/sample_1.html' as a link in
the e-mail newsletter. But I want a specifically sized window without
navigation, menu, and status bars. Does anyone know if there is a specific
code necessary for use in e-mail clients?

Thanks a lot.
 
T

Thomas A. Rowe

A email client application is not a browser, so just link to a page on your site that just has the
content you want users to see.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

p c

1. For security reasons nowadays, scripting is disabled in HTML messages
in Outlook and outlook express (in latest versions or those with the
security patches.

2. Most email messages display basic HTML coding correctly. But do not
support ALL HTML elements or coding.
...PC
 
R

rszebras

Thanks a lot for your post. I really appreciate you spending time to provide
a response. I'll just go back to the way I've been doing it, i.e., provide a
link to the web page rather than using javascript to fine tune the look of
the page.
 
R

rszebras

You brought to my attention something I hadn't thought of. Thanks a lot for
your response. I really appreciate it. I'll go back to the way I've been
doing it, i.e., provide a link in the e-mail message to the web page
displaying the content. I really like the feature in FrontPage of being able
to have a pop-up window that is a specific size and does not contain all the
toolbars, menus, etc. But I guess that is something that is really only for
use in a browser as opposed to the e-mail client.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top