Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript in HTML email attachment

Status
Not open for further replies.

NetCentric

Technical User
Oct 17, 2000
1
US
Thanks for any help...

I'd like to begin sending an HTML newsletter. I plan to attach it in an email and provide an alternate link for those with HTML impaired email clients. In the HTML file, all the paths are hardcoded to my web site ( and I'm using a javascript function to open and control a new window for some links. It looks like this:

<SCRIPT>
function open_window(url) {
mywin = window.open(url,&quot;win&quot;,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=400');
}
</SCRIPT>

And the links look like this:

<A HREF = &quot;javascript:eek:pen_window(' text</a>

So far, one person has told me they get no data in the pop-up window. Another has told me they get errors. It works great on my machine running Win98.

My questions are:
1) is there something wrong with my source code?
2) is it feasible to use this approach?
3) what are the downfalls of using javascript to pop a window like this from an emailed HTML file?

Any help would be greatly appreciated. [sig][/sig]
 
Many emailers disable Javascript in because of things like the Melissa and ILOVEYOU viruses. [sig]<p>nick bulka<br><a href=mailto: > </a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top