web()
web(url)
web(url, option1, ..., optionN)
stat = web(...)
[stat, h, url] = web(...)
| Parameter | Description |
|---|---|
| url | a string: web address, local file path, file URL, or text URL. |
| option | one of '-browser', '-new', '-noaddressbox', or '-notoolbar'. |
| 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. |
web opens external addresses in the system browser and opens local or inline HTML content in the Nelson HTML viewer.
[stat, h] = web('text://<html><body><h1>Hello</h1></body></html>');
| Version | Description |
|---|---|
| 1.0.0 | initial version |