Close window and open document in new window : Window : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Window »

 

Close window and open document in new window





<html>
<head>
<title>Javascript examples</title>

<script language="javascript">
<!--

function CloseWindow() {

  window.close();

}

function CloseAndNewPage() {

  window.close();
  opener.location.href = "http://www.navioo.com";

}
//-->
</script>


</head>

<body bgcolor="#ffffff" text="#000000">
This is a new Window<br>
<br>
<a href="javascript:CloseWindow()">Close This Window</a><br>

<br>
<a href="javascript:CloseAndNewPage()">Close This Window And Open This Document in Original Window</a>

</body>
</html>




           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Window