SetBrowserProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 9: Line 9:
bool setBrowserProperty ( browser theBrowser, string key, string value )
bool setBrowserProperty ( browser theBrowser, string key, string value )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[Element/Browser|browser]]:setProperty||setBrowserProperty}}
{{OOP||[[Element/Browser|browser]]:setProperty||getBrowserProperty}}


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

Revision as of 01:13, 15 September 2015

This function sets a given property of a specified browser.

Syntax

bool setBrowserProperty ( browser theBrowser, string key, string value )

OOP Syntax Help! I don't understand this!

Method: browser:setProperty(...)
Counterpart: getBrowserProperty


Required arguments

  • theBrowser: The browser element you want to set a property of
  • key: The browser property key. It can be:
    • mobile: Surfing the web as mobile
  • value: A value indicating whether to enable ("1") the property or not ("0")

Returns

Returns true if the property was successfully set, false otherwise.

Example

Todo

See also