Browser::url: Difference between revisions
(Created page with "'''Function''': Set a new URL ==Parameters== * '''URL''': {{RageType|String}} ==Syntax== {{ClientsideCode| <pre> browser.url; </pre> }} ==Example== {{ClientsideCode| <pre>...") |
KirillZver (talk | contribs) No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
'''Function''': Set a | '''Function''': Set or get the url of a browser | ||
==Parameters== | ==Parameters== | ||
| Line 12: | Line 12: | ||
==Example== | ==Example== | ||
Setter: | |||
{{ClientsideCode| | {{ClientsideCode| | ||
<pre> | <pre> | ||
| Line 18: | Line 19: | ||
</pre> | </pre> | ||
}} | }} | ||
Note that after changing url, caret disappears in active input (tested in 1.1). | |||
Getter: | |||
{{ClientsideCode| | |||
<pre> | |||
let url = browser.url; | |||
</pre> | |||
}} | |||
See [[Package Protocol]] for more info on the <code>package://</code> url. | See [[Package Protocol]] for more info on the <code>package://</code> url. | ||
Latest revision as of 20:05, 6 February 2021
Function: Set or get the url of a browser
Parameters
- URL: String
Syntax
Client-Side
browser.url;
Example
Setter:
Client-Side
let browser = mp.browsers.new("package://index.html");
browser.url = "package://home.html";
Note that after changing url, caret disappears in active input (tested in 1.1).
Getter:
Client-Side
let url = browser.url;
See Package Protocol for more info on the package:// url.
See Also
- Functions:
- Properies: