How to avoid window.close() ?

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

Hi,all:
Here I write a broswer application which want to running always.
Now I have set the registry value 'NoNewWindow' to be 1 in order to let
all contents to display in only one window.
But on some web pages, there exists window.close() statement, which will
cause my broswer quit.
How to avoid this ?
Is there any configuration or need update some codes in my application ?

Thanks very much !

Jack.
 
If you're talking about running IE6, then I think you'll need to write a
browser helper object (BHO) that you can use to intercept the window.close
event and determine if you want to actually respond to the event or not.
 
Back
Top