Click to See Complete Forum and Search --> : Why doesnt this work?


rtatnell
02-16-2003, 11:40 AM
I would like to know why the following code doesnt work on my page, its really starting to annoy me!!

<head>
<title>Page Title</title>
<script language="Javascript">
function openlogout()
{
window.open(".\dologout.asp","Logout",","bordersize=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no, copyhistory=no,width=300,height=100")
}
</script>
</head>
<body bgcolor="black" text="white" link="white" vlink="white" alink="white" onUnload="openlogout()">

Nothing pops-up when I close the browser window, what is wrong??
Thanks for your help

Zach Elfers
02-16-2003, 12:02 PM
<script language="Javascript">
function openlogout()
{
window.open(".\\dologout.asp","Logout"," bordersize=0,toolbar=no,location=no,directories=no
,status=no,menubar=no,scrollbars=yes,resizable=no,
copyhistory=no,width=300,height=100")
}
</script>

You had a backslash and an extra " that needed to be fixed. It should work now.

rtatnell
02-16-2003, 12:50 PM
Cheers