You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MsHtml WebBrowserControl has DISPID_TITLECHANGE event
MFC CHtmlView has OnTitleChange event handler
Windows.UI.Xaml.Controls.WebView has DocumentTitle property
macOS WkWebView has title property
Needed for apps that display page title in their UI
Executing a script to get DOM document.title is not equivalent - what happens if scripting is disabled or document is not HTML (e.g. PDFs)
The text was updated successfully, but these errors were encountered:
The property has the advantage of being simple, but there's no way to notify the app of a change (e.g. when view content fetched by XmlHttpRequest sets document.title) and you probably need locking to avoid accessing property during an async update.
The event handles changes to document.title naturally and might not require locking, but might not fit so well with the WebView2 event model.
Hi Mark, thanks for submitting the feedback! We’ve added new APIs get_DocumentTitle and add_DocumentTitleChanged for getting the title of the current top level document and getting notification for the document title change in the new SDK update. Make sure you update the SDK and use the canary channel for testing.
MsHtml WebBrowserControl has DISPID_TITLECHANGE event
MFC CHtmlView has OnTitleChange event handler
Windows.UI.Xaml.Controls.WebView has DocumentTitle property
macOS WkWebView has title property
Needed for apps that display page title in their UI
Executing a script to get DOM document.title is not equivalent - what happens if scripting is disabled or document is not HTML (e.g. PDFs)
The text was updated successfully, but these errors were encountered: