How to Open a new tab in my macOS app when i click a hyperli

Built a cool app using CEF that you'd like to share with the community? Talk about it here.

How to Open a new tab in my macOS app when i click a hyperli

Postby kkpratik » Fri Dec 10, 2021 2:24 am

Hi there,

I am creating a macOS app that opens a browser inside it.
Using the instructions provided by CEF tutorial on bitbucket, i was able to open a browser window in my macOS app.
I am trying to open a new tab on clicking a hyperlink or may be on the click of a particular button.
Can anyone help guide me in the right direction for this ? I could not find any relevant results for this anywhere.

Thanks.
kkpratik
Newbie
 
Posts: 1
Joined: Fri Dec 10, 2021 2:08 am

Re: How to Open a new tab in my macOS app when i click a hyp

Postby magreenblatt » Fri Dec 10, 2021 11:20 am

See https://stackoverflow.com/questions/177 ... ab-in-html

CEF does not provide a tab control. You will need to implement that functionality in your application and use it as the parent for the new CefBrowserHost.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm


Return to Apps Discussion

Who is online

Users browsing this forum: No registered users and 2 guests