setBrowserProperty
Client-side
 Server-side
 Shared
 Pair: getBrowserProperty
This function sets a given property of a specified browser.
OOP Syntax Help! I don't understand this!
- Method: browser:setProperty(...)
Syntax
bool setBrowserProperty ( browser webBrowser, string key, string value )Required Arguments
- webBrowser: The browser element you want to set a property of.
-  key:
The browser property key. - mobile: Surfing the web as mobile
 
- value: A value indicating whether to enable ("1") the property or not ("0").
Returns
- bool: result
Returns true if the property was successfully set, false otherwise.
Code Examples
 client   
 This example will add a command handler for 'mobile' that will toggle mobile browsing for all browsers.
addCommandHandler("mobile",    function ()        for i, browser in pairs(getElementsByType("webbrowser")) do            setBrowserProperty(browser, "mobile", getBrowserProperty(browser, "mobile") == "1" and "0" or "1")        end    end)See Also
Browser Functions
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- getBrowserProperty
- getBrowserSource
- focusBrowser
- getBrowserSettings
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- reloadBrowserPage
- navigateBrowserForward
- resizeBrowser
- setBrowserAjaxHandler
- requestBrowserDomains
- setBrowserRenderingPaused
- toggleBrowserDevTools
- setBrowserVolume
- setBrowserProperty
 
 