GetBrowserProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Link to the Romanian translation of this page added.)
Line 27: Line 27:


[[hu:getBrowserProperty]]
[[hu:getBrowserProperty]]
[[RO:getBrowserProperty]]

Revision as of 11:49, 8 April 2020

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 ( browser theBrowser, string key )

OOP Syntax Help! I don't understand this!

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


Required arguments

  • theBrowser: browser element to get the property value of
  • 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