how to open another window and close the window that calls it
- by user225269
I have this code in userpage.php:
<script langauge="JavaScript"><!--
function newWindow(fileName,windowName) { msgWindow=window.open(fileName,windowName); }
//--></script>
<a href="javascript:newWindow('1.html','window1')">Logout</a>
And this code at index.php:
<script language="JavaScript"><!--
function…