getBrowserTitle | Multi Theft Auto: Wiki Skip to content

getBrowserTitle

Client-side
Server-side
Shared

This function returns the title of the passed browser.

OOP Syntax Help! I don't understand this!

  • Method: browser:getTitle(...)
  • Variable: .title

Syntax

string|false getBrowserTitle ( browser webBrowser )
Required Arguments
  • webBrowser: The browser.

Returns

  • string|false: title

Returns the title as a string. Returns false if invalid arguments were passed.

Code Examples

client
addCommandHandler("browsers",
function()
outputChatBox("List of browser titles:")
for k, v in pairs( getElementsByType("web-browser") ) do
outputChatBox(k .. ". " .. getBrowserTitle(v))
end
end
)