Home All Groups Group Topic Archive Search About

window.close problem

Author
27 Jul 2006 8:09 PM
Daniel MOSMONDOR - Mosh
Hi!

On this URL is the example of my problem....


http://www.usa.canon.com/consumer/controller?act=RedirectAct&fcategoryid=313&modelid=9429&URL=http://www.usa.canon.com:80/consumer/controller?act=SecondRedirectAct&nav=second&fileURL=/app/pdf/slr/Rebel_brochure.pdf&type=DNLD

As it loads, it starts to process the script and then comes to window.close
that shows the dialog box asking user if it should close the browser window.

Since I am using IE as control in .net 2.0 and using some extension to it
found on codeproject site, I want to handle all browser UI with my dialogs,
but unfortunately event that is supposed to be firing doesn't fire.  It is
WindowClosing event, that even has cancel parameter.

My ideas:

1. find out if there is some hidden property inside Internet Explorer
registry that would default the dialog box to yes or to no (no success
there)
2. find if there is a way to use Navigate() to the url, then use some event
that is fired after the document is loaded but before the script runs (no
success there either)
3. make local proxy server that would filter out window.close from the
script

Am I missing something, please advise.

Thx

AddThis Social Bookmark Button