Forum Moderators: phranque

Message Too Old, No Replies

HOWTO Keep a page loaded

prevent window takeover

         

rhamlin

2:29 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



Is there a way to keep a certain page loaded in a popup and force any http requests to use new windows instead of taking over my little popup window?

This is for an Intranet Site.

Thanks

Rob Hamlin

ncsuk

2:30 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



Just set in the link

<a href="domain.ext/page.ext" target=_blank>Link Text Here</a>

ncsuk

2:31 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



If you want the page that appears a certain size you will have to use a javascript.

rhamlin

2:58 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



I am not trying to prevent my links from opening in my window. I dont want a link someone clicks in the email for instance to reuse my existing window. I essentially want my window to be stuck at the loaded url which is a menu for aur intranet site.

Gibble

3:14 pm on Jun 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



They should only open in your window if a window with the same target name is opened as your window was opened with.

Does that make any sense?

rhamlin

3:19 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



Here is what opens my windw
I dont see target specified anywhere

<script language="JavaScript">

// Set height and width
var NewWinHeight=200;
var NewWinWidth=200;

var NewWinPutX=10;
var NewWinPutY=10;

TheNewWin =window.open("dashboard_popup.htm",'TheNewpop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');

TheNewWin.resizeTo(270,768);
TheNewWin.moveTo(10,10);

</script>

TheDoctor

9:37 pm on Jun 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



They should only open in your window if a window with the same target name is opened as your window was opened with.

Not sure if this is a general problem, but if I'm looking at something in Opera, stop to follow a link that I received in my email (using Eudora), then the linked page opens in the Opera window that I was looking at. I have to remember to open a new window in Opera if I'm going to do that. Mostly I don't (partly because I do this so rarely), so I have to then use the back button, open a new page and reload the link.

I think this may be what rhamlin is trying to find a way around.

rhamlin

9:57 pm on Jun 5, 2003 (gmt 0)

10+ Year Member



exactly

drbrain

10:10 pm on Jun 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In IE its a client-side setting, something like "reuse explorer windows"

rhamlin

1:48 pm on Jun 6, 2003 (gmt 0)

10+ Year Member



Isnt there some sort of Onunload event handler, that can catch the loading url and throw it to a new window and reload the current url to my window.