I am using the following function on my website:
function popup(link, w, h) {
popupWin = window.open(link,'remote','width=' + w + ',height='+ h)
}
and then use this link to show full size images with this href:
javascript
opup('image_location', 500, 380);
When I follow a link for the first time a popup opens like I want. If you then click on another thumbnail, it replaces the image in the popup with the one just clicked, but the focus returns to the main window, putting the popup in the back. So you either have to click on the popup to regain focus or you have to close the popup before clicking on the next thumbnail. I would like to change the code so that the popup window retains the focus when another thumbnail is clicked. The focus does not have to be on the popup the whole time, but just regain the focus after a link is clicked that puts an image in that popup. How do I go about accomplishing this? Thank you very much.
Sample problem is at
Scott.
function popup(link, w, h) {
popupWin = window.open(link,'remote','width=' + w + ',height='+ h)
}
and then use this link to show full size images with this href:
javascript
When I follow a link for the first time a popup opens like I want. If you then click on another thumbnail, it replaces the image in the popup with the one just clicked, but the focus returns to the main window, putting the popup in the back. So you either have to click on the popup to regain focus or you have to close the popup before clicking on the next thumbnail. I would like to change the code so that the popup window retains the focus when another thumbnail is clicked. The focus does not have to be on the popup the whole time, but just regain the focus after a link is clicked that puts an image in that popup. How do I go about accomplishing this? Thank you very much.
Sample problem is at
Scott.