SetBrowserProperty: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setBrowserProperty ( 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||setBrowserProperty}} | ||
===Required arguments=== | ===Required arguments=== | ||
*'''theBrowser:''' The browser element you want to set a property on | |||
*'''key:''' The browser property key. It can be: | *'''key:''' The browser property key. It can be: | ||
**'''mobile:''' Surfing the web as mobile | **'''mobile:''' Surfing the web as mobile |
Revision as of 16:40, 23 July 2015
This function set a property to the web browser.
Syntax
bool setBrowserProperty ( browser thebrowser, string key, string value )
OOP Syntax Help! I don't understand this!
- Method: browser:setProperty(...)
- Counterpart: setBrowserProperty
Required arguments
- theBrowser: The browser element you want to set a property on
- key: The browser property key. It can be:
- mobile: Surfing the web as mobile
- value: A value indicate wheter enable("1") or not ("0") the property
Returns
Returns true if the property was successfully applied, false otherwise.
Example
Todo
See also
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools