miso
Copyright(C) 2016-2026 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Native.X.Element.Webview.Method

Contents

Description

N.B. The Desktop-only cookies.* methods (cookies.get cookies.set cookies.remove / cookies.flushStore) are not modelled here. They can be invoked directly with invokeExec if required.

Synopsis

Methods

reload :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #

https://lynxjs.org/api/elements/built-in/webview.html#reload

Reloads the selected <webview>.

reload "#myWebview" Reloaded ReloadFailed

eval Source #

Arguments

:: MisoString 
-> MisoString

JavaScript function to evaluate

-> action 
-> (MisoString -> action) 
-> Effect context props model action 

https://lynxjs.org/api/elements/built-in/webview.html#eval

Calls a JavaScript function inside the selected <webview>.

eval "#myWebview" "alert('hi')" Evaluated EvalFailed