GetBrowserProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client_function}}
{{Client function}}
{{Needs Example}}
{{Needs Example}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
This function get a property to the web browser.
This function gets a given property of a specified browser.
}}
}}


Line 10: Line 10:
bool getBrowserProperty ( string key )
bool getBrowserProperty ( string key )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:getProperty||getBrowserProperty}}
{{OOP||[[Element/Browser|browser]]:getProperty||[[setBrowserProperty]]}}


===Required arguments===
===Required arguments===

Revision as of 23:43, 13 September 2015

Accessories-text-editor.png Script Example Missing Function GetBrowserProperty needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function gets a given property of a specified browser.

Syntax

bool getBrowserProperty ( string key )

OOP Syntax Help! I don't understand this!

Method: browser:getProperty(...)
Counterpart: [[setBrowserProperty]]


Required arguments

  • key: The browser property key. It can be:
    • mobile: Surfing the web as mobile

Returns

Returns the value if the property was successfully found, false otherwise.

Example

Todo

See also