Window focus problem
Alright, I've got a photo gallery set up here. It starts with a page of thumbnails, and then when the thumbnail is clicked it opens in a new window. Now, if the user opens one photo, and then goes back to the thumbnail window and clicks on another thumb, the new photo will load in the pop-up but the pop-up is still in the background. What I want to do is bring focus to the pop-up when the user clicks on a thumb. Here's the page I'm talking about, and I hope this makes sense:
http://www.meganjack.com/multimedia/photos/00challenge.shtml
Click on a thumb, then go back to the thumbs page and click on another one without closing the pop-up and you'll see what I mean. I tried putting popup.focus() in several places in the code but it didn't work - I'm just not sure where it's supposed to go.
(Oh, and the SSI's are working fine - thanks for everyone's help)
Megan posted this at 21:06 — 15th December 2000.
She has: 11,421 posts
Joined: Jun 1999
Nevermind - I figured it out. I should have known that I'd have to do the focusing in the pop-up. I just have to add onload="self.focus();" to the body tag! And the handy Homesite search and replace will do it for me!
Megan
Connect with us on Facebook!
Mark Hensler posted this at 09:44 — 16th December 2000.
He has: 4,048 posts
Joined: Aug 2000
just curious, what happens if you put a return false; like this:
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
return false;
}
//-->
Mark Hensler
If there is no answer on Google, then there is no question.
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.