GetBrowserTitle: Difference between revisions
Jump to navigation
Jump to search
(→Example: added example) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Client function}} | ||
{{New feature/item|3.0150|1.5|| | {{New feature/item|3.0150|1.5|| | ||
This function returns the title of the passed [[Element/Browser|browser]]. | This function returns the title of the passed [[Element/Browser|browser]]. |
Revision as of 20:15, 15 September 2015
This function returns the title of the passed browser.
Syntax
string getBrowserTitle ( browser webBrowser )
OOP Syntax Help! I don't understand this!
- Method: browser:getTitle(...)
- Counterpart: getBrowserTitle
Required arguments
- webBrowser: The browser
Returns
Returns the title as a string. Returns false if invalid arguments were passed.
Example
addCommandHandler("browsers", function() outputChatBox("List of browser titles:") for k, v in pairs( getElementByType("web-browser") ) do outputChatBox(k .. ". " .. getBrowserTitle(v)) end end )
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