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
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