Browser Control Overview
Programmatic control of WebView2 browser navigation, state, and printing
Namespace: web.browser
Available Methods
navigate— Navigate to a URLback— Go back in historyforward— Go forward in historyhome— Navigate to the app's configured home pagereload— Reload the current pagereloadNoCache— Hard reload, bypassing cachegetCurrentUrl— Get the current page URLgetPageTitle— Get the current page titlecanGoBack— Check if back navigation is availablecanGoForward— Check if forward navigation is availablestop— Stop loading the current pagegetUserAgent— Get the browser user agent stringsetUserAgent— Set a custom user agent stringgetZoom— Get the current zoom factorsetZoom— Set the zoom factorprint— Open the system print dialog