Click to See Complete Forum and Search --> : Popup window from an Email


Joe22
11-07-2003, 02:17 AM
Hi,

I have a link in an email and I would like to bring up the the URL in a popup window. When I try to do it, the browser doesn't recognize the javascript.

The email contains the following which works if it's in a browser:

<script language='javascript'>
//-- This function opens a new window.
function openWindow(URL) {
winStats='toolbar=no,location=no,directories=no,menubar=no,'
winStats+='scrollbars=yes,width=650,height=500'
if (navigator.appName.indexOf("Microsoft")>=0) {
winStats+=',left=10,top=25'
}else{
winStats+=',screenX=10,screenY=25'
}
popup=window.open(URL,"",winStats)
}
//-->
</script>

THis is the link:
<a href="javascript:openWindow('http://www.ctest.com');">Form</a>

Thanks

AdamGundry
11-07-2003, 02:30 AM
Try this popup script (http://webdevfaqs.com/javascript.php#popup). If that doesn't work, the failure may be due to security restrictions in the email program.

Adam

Joe22
11-07-2003, 02:46 AM
That worked perfectly.

Thank you so much.

AdamGundry
11-07-2003, 03:44 AM
No problem. :cool:

Adam