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
JavaScript New Window
Moderator: General Moderators
-
Straterra
- Forum Regular
- Posts: 527
- Joined: Mon Nov 24, 2003 8:46 am
- Location: Indianapolis, Indiana
- Contact:
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(){
t = setTimeout("self.close()",howLong);
}
</script>