HU/getBrowserTitle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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...")
(No difference)

Revision as of 16:57, 10 August 2018

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