Click to See Complete Forum and Search --> : identify window


kitkat2002uk
02-25-2003, 10:44 AM
hi all

i'm opening several pop windows according to the users selection. If the user clicks on the same link which he clicked before it shouldn't open it again, it should just bring that window which was previously opened for that specific link.

how do i do this??

please help

many thanks

gil davis
02-25-2003, 11:14 AM
The window would have to have a NAME, and the link would have to specify that name as the TARGET.

If you are using "window.open", the second parameter is the window name. The function looks for a window by that name that is already open and if it finds one, it will reuse it. Failing that, it opens a new window.