Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to break out of browser window


Message #1 by "Larry Guayante" <larryg@p...> on Tue, 13 Mar 2001 11:43:19 -0800
In the page you want to replace, you could write a function that does this,
or you can use

<body onload="window.location.replace('url')">

-----Original Message-----
From: Larry Guayante [mailto:larryg@p...]
Sent: Tuesday, March 13, 2001 2:43 PM
To: javascript
Subject: [javascript] How to break out of browser window


I use the following function and link to create a small browser window to
view the scripture reading for one sunday (this works fine).
**********************************************************************
function OpenBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);

The browser is opened wh
<a href="#"
onClick="OpenBrWindow('sundayreading1.asp','sundayreading','scrollbars=yes,w
idth=350,height=350')">
***********************************************************************
I put a link in the new browser window giving the user the option to go to a
new page containing all the sunday scripture readings. The problem is that
the new page loads within the new browser window--I want the new window to
replace the parent window (the window that called the small browser window).
How do I do this?

Larry Guayante
Knowledge Outlook
"performance, process, and learning solutions"
larry@k... <mailto:larry@k...>






  Return to Index