Back#
func (view *WebView) Back()Back and Forward move through the page's history.
type WebView struct {
// contains filtered or unexported fields
}WebView is one open page.
Back#func (view *WebView) Back()Back and Forward move through the page's history.
Close#func (view *WebView) Close()Close closes the page. Its NativeView stops being placed.
Eval#func (view *WebView) Eval(script string)Eval runs a script in the page. The result is not read back: have the script post a message.
Focus#func (view *WebView) Focus()Focus gives the page the keyboard.
Forward#func (view *WebView) Forward()ID#func (view *WebView) ID() ui.NativeViewIDID names the page for Canvas.NativeView.
Load#func (view *WebView) Load(url string)Load navigates to a URL.
LoadHTML#func (view *WebView) LoadHTML(html, baseURL string)LoadHTML shows a document, with baseURL as its address.
PostMessage#func (view *WebView) PostMessage(text string)PostMessage delivers text to the page's window.viva.onmessage handler.
Reload#func (view *WebView) Reload()Reload loads the page again.