I have server-side script that pops up after the user submits a form. It's basically telling the user if there's a problem with the data submitted or not.
the user is given a message, and presented with two buttons, "Go Back", which does an onClick="window.close()"
And a "Next Step" which does onClick="window('http://...and the URL to the next page.
Everything works OK, but when the user chooses to go to the next window, the one he was in stays open, unless he manually closes it.
I tried using a dummy <INPUT TYPE="Image" src="transparent. gif" onBlur="window.close()"> and it didn't work. Probbly because there was no text area to gain focus, and hence focus to be lost.
Does anybody have an idea on how to get un-needed pop-ups to close automatically, if the user leaves that window?
Thanks.



Reply With Quote



Bookmarks