Hi all,
This is a JavaScript question that is integrated into a php script.
I have a dynamic link that onClick event opens a new window (popup like) and pass some paramaters.
That part works great.
However, If the master window is clicked while the popup window is still open, .. it covers the popup window.
I want to click the same dynamic link and this time.. if the popup window object is found, then just bring it forward (I think it is a focus() command).
As simple as this sounds,.. I can't get it to work:
echo "<a href=\"#\" onClick=\"window.open('additional_images_frame.php?Id=$Id&& ImageId=$ImageId[0]','win_feat_ex','width=670,heig
ht=400');
return false;\">";
echo " <img alt=\"$row[4]-$row[2]-$row[3]\" hspace=\"0\" SRC=\"thumbnail.php?Id=$ImageId[0]&&ThumbnailBackgroundColor=5\" border=\"0\" </a>
THE OnClick event works great,. but how do I add the logic to find if the object of the new popup window is already open and just bring it forward?
Thanks,
-Alon.
js@wsco.com