PDA

View Full Version : opening a browser window with JS in email/MHTML


zigkatz
03-23-2003, 10:48 AM
i'm trying to create a link which will open a browser window without scroll/address bars in an email. i can get it to work, but it insists on opening another window behind it because i have to enter the JS into the href rather than making an "onClick" and putting a # into the href, because it will not read the href! (upon rollover with that method, it reads: mhtml:mid://00000008/# - the number actually changes the more i mess with outlook.) i've tried backing it up with a / and a //, but nothin. everytime i make a slick function and think i've solved the problem, hotmail and/or outlook flushes it out. as it stands, i've got this for code:

<A href="javaScript:window.open('http://myaddress.com/index.html','','width=800,height=600')">

i've tried entering "javascript:;" into the href field instead of the # as well, but it still doesn't work.

while you're reading, is there any reference i can find to let me know what generally does and does not fly javascript wise in emails. (and also, can i embed .swfs without them getting trashed? - i know they suck, but, some people insist...)

thanks for all your help!


-zig

allyourbasearebelongtous

zigkatz
03-24-2003, 12:41 AM
recent developments...

the following code seems to get what i want in outlook, but gets filtered in hotmail. this is definitely the effect i want.... is there a way to get this done?

<a href="javascript:window.open('http://home.earthlink.net/~crankymonster/main/index2.htm','','width=750,height=550');self.close();">

thanks!

Graeme Hackston
03-24-2003, 01:16 AM
I've never done anything with email but have you tried this?

<span onmouseover="this.className='over'" onmouseout="this.className='static'"onclick="window.open(...)">open</span>