Page 1 of 1

JavaScript New Window

Posted: Wed Jan 14, 2004 10:01 pm
by phppick
Hi ,

I have a login page to my project, once the user login is successful, i am opening project page in New Window using below javascript code. ( This One I got from this Forum, from Our Friends)

<script language="JavaScript"><!--
msgWindow=window.open('apage.html','windowName','toolbar=no');
//--></script>

But I want to Close login page once the login is successful.. How can i do that??

Can anybody tell where i can find complete code for this.. i am using Php and Mysql along..

Thanks

Posted: Wed Jan 14, 2004 10:07 pm
by Straterra
Have it "open" a popup with the same name, but to a site that has this code, and it will close it!

Code: Select all

<script>
var howLong = 1;

t = null;
function closeMe()&#123;
t = setTimeout("self.close()",howLong);
&#125;
</script>

Posted: Sun Jan 25, 2004 5:03 pm
by Gen-ik
Your log-in page will have to be in a new window as well because JavaScript won't allow you to close the original browser window.