[thelist] Window Popup Problem

Christian Heilmann codepo8 at gmail.com
Fri Feb 17 13:40:49 CST 2006


> This kinda works:
> onclick="var f=document.logonForm;
> f.url.value='http://library.alldatapro.com'; f.target='_blank';
> f.submit();"
> But, if I pop up a window and then close it and then click on one of the
> links that should not popup a window, it will.
>
> It's like some variable is being set but not destroyed when the child
> window is closed.

You then have to delete the target again of course. I think a much
better solution would be to flag the links that need to open in a new
window up with a class, loop through all links and apply an event
handler to those that should open a new window.

--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list