Handling Popups

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Handling Popups

Postby Syam » Wed Aug 09, 2017 1:05 am

I am trying to handle the popups by showing customized form using Lifespanhandler(CEFSharp). How can I send back the chromium reference back to javascript so that I can close the customized pop up.I am doing it the following way.
Code: Select all
var ref = window.open('https://google.com', '_blank', 'width=800,height=600,left=300,top=200');

CEFSharp provides an ChromeBrowser variable of type out in the arguments section of LifeSpanHandler where I am trying to send back the chromium browser which I created to handle the popup.But it is not returning back any thing as the ref variable will be undefined.If I don't handle the popup the ref variable will hold value of window reference.
I just want to confirm whether I can send back the reference of the customized popup back to javascript or am I doing it the wrong way.
Syam
Newbie
 
Posts: 1
Joined: Wed Aug 09, 2017 12:19 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 43 guests