This demo invoking webview_eval
tested working on Ubuntu 20.04 with webview #7b40e46d9 (Feb 2023).
As of webview #adbb85d0f (Feb 2024), webview_eval
doesn't work for this demo; with webview_init
the demo works.
As of webview #adbb85d0f (Feb 2024), webview_init
tested working for this demo on macOS Monterey x86_64
and macOS Sonoma aarch64.
On my (Pierce Ng's) Windows 10 Home 20H2, the webview window comes up
blank. With a sleep()
statement between invocation of
webview_navigate()
and webview_eval()
, the Javascript-injected
content shows up, and is then replaced by the content injected by
webview_navigate()
.
In conclusion, as a Pascal program invoking webview.dll
, this program
works, but its behaviour, driven by the Windows web engine's execution
model, is unexpected. Better to use the bidirectional functionality demonstrated
by js_bidir.lpr
.