web
Open a web page, local file, or HTML text.
📝Syntax
web()
web(url)
web(url, option1, ..., optionN)
stat = web(...)
[stat, h, url] = web(...)
📥Input Arguments
Parameter Description
url a string: web address, local file path, file URL, or text URL.
option one of '-browser', '-new', '-noaddressbox', or '-notoolbar'.
📤Output Arguments
Parameter Description
stat 0 on success, nonzero otherwise.
h HTML viewer handle, or empty when the system browser is used.
url current HTML viewer input, or an empty string when the system browser is used.
📄Description

web opens external addresses in the system browser and opens local or inline HTML content in the Nelson HTML viewer.

💡Examples
Display inline HTML text.
[stat, h] = web('text://<html><body><h1>Hello</h1></body></html>');
🔗See Also
nelson.htmlviewer.htmlviewer
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub