How To Disable Js window.close and let's everthing stay OK?
Posted: Mon Mar 25, 2019 4:58 am
Hello,Thanks for your great job, I have a problem in disable Js window.close
Some web page will use javascript "window.close" to close web window,but it's bad for me ,becacuse whole application will terminated after that,
so i use onClose event and give a Result:=True Value to prevent this operation.
but after this ,the TChromium's FClosing will changed to true,this cause the OnJsDialog and ShowDevTools function runs in wrong judgement....now time, I Used the class helper to intrude this value.... or maybe OnClose event should Sending the FClosing Value to inner to change it's value...
My question is "How to prevent Js window.close() operation and let's TChromium's statues goes ok"?
Waiting for your suggestion...thank you .
Some web page will use javascript "window.close" to close web window,but it's bad for me ,becacuse whole application will terminated after that,
so i use onClose event and give a Result:=True Value to prevent this operation.
but after this ,the TChromium's FClosing will changed to true,this cause the OnJsDialog and ShowDevTools function runs in wrong judgement....now time, I Used the class helper to intrude this value.... or maybe OnClose event should Sending the FClosing Value to inner to change it's value...
My question is "How to prevent Js window.close() operation and let's TChromium's statues goes ok"?
Waiting for your suggestion...thank you .