launch url in widget

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
launch url <url> in <widget>
Summary

Launches a url in a widget.

Introduced8.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
url

The URL to launch. The supported url types will vary depending on the capabilities of the widget.

widget

A widget reference.

Example
launch url "http://www.livecode.com" in widget "myWebBrowser"
RelatedKeyword: URL
Command: launch url, launch document
Function: URLEncode
Object: widget
Description

Use the launch url command to open a url within a widget. When launchurl in widget is called, LiveCode sends a "OnLaunchURL" message to that widget with url as the parameter. The widget can then display the url in an appropriate manner.

Note: The url must be a standards-compliant URL. In particular, file: urls must be of the form file://<b>absolute path</b>, and the path should be URL-encoded.

Tagswidget