If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Please help..This is the last piece of code to get working

Thanks to Gary Newell for the help with the popups...I have it working .."almost"...if i call the popup from an image it has focus and is on top..if I click another image the new url loads and focus stays on top..this is all perfect so far but 1 problem left....if i close the popup after calling it from one of the images and then click another image to popup the window I get an Script error
..says line 17
charactor 4
unspecified error
code 0
so it looks to see if a window is open and if so load new url and give focus. but if you pop one up then close it yourself and click another image it errors. If you refresh the page it works ok again unless you close the popup window.
Here is a link to the page

http://www.lhfcorp.com/wood/rightlaminate.html when you get there click an image and popup will work...click another image and popup will load new url an get focus...now close the popup and try clicking any image again..no popup and error occurs.

...can anyone help...this is thre last piece of the site to get working..

First of all, things are a bit ambiguous. You have both a window name and a variable name of 'window1'. Another thing, you seem to not realize that the browser is perfectly capable of checking to see if a window named window1 already exists and, if so, replacing its contents with the new url and, if not, opening it first. The browser also has no problem in giving focus to a window it has just opened. One more thing, the language attribute for the script tag is deprecated, don't use it. With all this in mind, your script can be simplified to: