posted 18 years ago
Just to be clear, I don't think the solution I have is acceptable.
But it does exactly what you asked for, and I think is theoretically interesting.
It probably won't work with popup blockers, and has lots of disadvantages.
You can try to modify that code by using try/catch around it, and assuming it not found if exception happend
also, I tested it on IE 6, on local hard drive, so may not work with other browsers and security issues.