HU/getBrowserTitle

From Multi Theft Auto: Wiki
Revision as of 16:57, 10 August 2018 by Surge (talk | contribs) (Created page with "__NOTOC__ {{Client function hu}} {{New feature/item|3.0150|1.5|| This function returns the title of the passed browser. }} ==Szintaxis== <syntaxhighlight...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns the title of the passed browser.

Szintaxis

string getBrowserTitle ( browser webBrowser )

OOP Syntax Help! I don't understand this!

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


Kötelező argumentumok

  • webBrowser: The browser

Visszaadott érték

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

Példa

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

Lásd még

GUI Függvények


Fordította

  • Surge