How to block window.close() from javascript

22 views
Skip to first unread message

Sai Prasad

unread,
Jun 15, 2016, 5:25:37 AM6/15/16
to CefGlue
Hi Dmitry,

I have a scenario where I need to block the window.close event in windows forms currently if there is window.close function it is getting close but I need to restrict it, 
please help me out to achieve this.

Regards,
Sai Prasad B


Dmitry Azaraev

unread,
Jun 15, 2016, 12:42:03 PM6/15/16
to CefGlue

Hi. Check CefLifeSpanHandler first and JSHandler as well. If you still in trouble - you can replace window.close function in RendererProcessHandler in OnContextCreated.


--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sai Prasad

unread,
Jun 16, 2016, 2:29:36 AM6/16/16
to CefGlue, dmitry....@gmail.com
Hi Dmitry, I have gone through this but nothing happend can you please provide me the example 
Reply all
Reply to author
Forward
0 new messages