GetBrowserTitle: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Link to the Romanian translation of this page added.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 9: | Line 9: | ||
string getBrowserTitle ( browser webBrowser ) | string getBrowserTitle ( browser webBrowser ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Element/Browser|browser]]:getTitle| | {{OOP||[[Element/Browser|browser]]:getTitle|title}} | ||
===Required arguments=== | ===Required arguments=== | ||
Line 22: | Line 22: | ||
function() | function() | ||
outputChatBox("List of browser titles:") | outputChatBox("List of browser titles:") | ||
for k, v in pairs( | for k, v in pairs( getElementsByType("web-browser") ) do | ||
outputChatBox(k .. ". " .. getBrowserTitle(v)) | outputChatBox(k .. ". " .. getBrowserTitle(v)) | ||
end | end | ||
Line 31: | Line 31: | ||
==See Also== | ==See Also== | ||
{{CEF_functions}} | {{CEF_functions}} | ||
[[hu:getBrowserTitle]] | |||
[[RO:getBrowserTitle]] |
Latest revision as of 12:05, 8 April 2020
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(...)
- Variable: .title
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( getElementsByType("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