Close application use javascript

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.

Close application use javascript

Postby Oegma2 » Wed Jan 23, 2013 6:23 am

I want to use a javascript button that when the user clicks the "[close]" button on a website, will notify the C++ application to close

Reason: I want to remove all the C++ GUI frames, borders, max, min and close button, and only provide the website part - but still need a [close] button on the website to close the applpication
Oegma2
Techie
 
Posts: 36
Joined: Wed Jan 23, 2013 5:07 am

Re: Close application use javascript

Postby magreenblatt » Wed Jan 23, 2013 9:55 am

How about window.close()?

Alternately you can implement and expose your own JS bindings as described here: http://code.google.com/p/chromiumembedd ... ntegration
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Close application use javascript

Postby Oegma2 » Fri Jan 25, 2013 7:01 am

the window.close worked! THANKS magreenblatt :D

The link is also useful
Oegma2
Techie
 
Posts: 36
Joined: Wed Jan 23, 2013 5:07 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 203 guests