Open New TopView via OnTap at html-button in WkWebView

Hi Everyone,


Is there somewhere an example that shows how to accomplisch the following:


I would like to load a webpage using the WkWebView > The Html contains a button > when the user taps on the button there should be a message send to the native app using a javascript call towards webkit.messageHandlers.callbackHandler.postMessage("MyViewTitle, MyViewContent.html") > then there should appear a new native top-view witht the Title "MyViewTitle" in the middle of the top-navigation while the new WkWebView at the new topview loads the html file from url "MyViewContent.html" (either remote or via a local file url). If the User clicks at the Back button in the top-navigation of the view, the entire topview should disappear.


Thanks in advance for any directions towards a possible solution!

Regards, C

Open New TopView via OnTap at html-button in WkWebView
 
 
Q