Pop-Up Windows - Targeting with open.window (Posted by Uther)

They have: 6 posts

Joined: Sep 1999

Ok, I have a question about the open.window command. On my web page, I have a table full of links that open up pop-up windows. All of the windows have the same name so that if someone should click on a different portion of the table, the link will load in the pop-up window already available as opposed to opening a seperate one. This is working fine and dandy but when someone clicks off of the pop-up window and on to a link in the table, the pop-up window gets placed behind the browser of the table. Is there any way to bring the pop-up window to the front when you click on a link in the table while using the same pop-up window for all of those links?

They have: 5,633 posts

Joined: Jan 1970

Try using something like WINDOWNAME.focus(). I have not checked if this works but I'm sure the focus() command is what you will use.

----------
[email protected]
http://go.to/hass

They have: 9 posts

Joined: Sep 1999

When can you and when can't you use (windowname).focus()?
I've had problems using it to bring forward windows that I have previously opened in Internet Explorer but not in Netscape..

This was what I was trying to do:
function pop(url) {
popup = window.open(url,"popupwindow","width=300,height=400");
popup.focus();
}
IE gave me an "access denied" error. I tried several variations too. Netscape was a-okay, however.

----------
ouch!

They have: 5,633 posts

Joined: Jan 1970

I am not too experienced in this area but I will have a look around a see if I can find some more info on window.open()

Best bet is to check irt.org. Last time I visited that site there were hundreds of scripts.

----------
[email protected]
http://go.to/hass

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.