<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/getBrowserURL?action=history&amp;feed=atom</id>
	<title>RO/getBrowserURL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/getBrowserURL?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getBrowserURL&amp;action=history"/>
	<updated>2026-04-04T04:27:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/getBrowserURL&amp;diff=65740&amp;oldid=prev</id>
		<title>Vinyard: Created page with &quot;__NOTOC__ {{RO/Funcție client}} {{New feature/item|3.0150|1.5|| Această funcție redă URL-ul unui element browser specificat. }}  ==Sintaxă== &lt;syntaxhi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getBrowserURL&amp;diff=65740&amp;oldid=prev"/>
		<updated>2020-04-08T12:10:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{RO/Funcție client}} {{New feature/item|3.0150|1.5|| Această funcție redă URL-ul unui element &lt;a href=&quot;/wiki/Element/Browser&quot; title=&quot;Element/Browser&quot;&gt;browser&lt;/a&gt; specificat. }}  ==Sintaxă== &amp;lt;syntaxhi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{RO/Funcție client}}&lt;br /&gt;
{{New feature/item|3.0150|1.5||&lt;br /&gt;
Această funcție redă URL-ul unui element [[Element/Browser|browser]] specificat.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxă==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBrowserURL (browser webBrowser)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/Browser|browser]]:getURL|url|loadBrowserURL}}&lt;br /&gt;
&lt;br /&gt;
===Argumente Necesare===&lt;br /&gt;
*'''webBrowser:''' Navigatorul web&lt;br /&gt;
&lt;br /&gt;
===Redare===&lt;br /&gt;
Redă URL-ul navigatorului web.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
Acest exemplu creează o comandă (/isyoutubeloaded) pentru a verifica dacă navigatorul web creat are YouTube încărcat, iar dacă nu este, îl încarcă.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Pentru a randa navigatorul web într-un colț, avem nevoie de dimensiunile ecranului.&lt;br /&gt;
local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
&lt;br /&gt;
-- Crearea unui navigator web nou în modul extern&lt;br /&gt;
local window = guiCreateWindow(screenWidth/2, 0, screenWidth/2, screenHeight/2, &amp;quot;Web Browser&amp;quot;, false)&lt;br /&gt;
local browser = guiCreateBrowser(0, 28, screenWidth/2, screenHeight/2, false, false, false, window)&lt;br /&gt;
local theBrowser = guiGetBrowser(browser) -- Preia elementul browser din gui-element&lt;br /&gt;
&lt;br /&gt;
-- Crearea unei comenzi noi pentru a verifica dacă YouTube este încărcat, iar dacă nu este, pentru a îl încărca&lt;br /&gt;
addCommandHandler(&amp;quot;isyoutubeloaded&amp;quot;,&lt;br /&gt;
function()&lt;br /&gt;
    if (getBrowserURL(theBrowser) == &amp;quot;&amp;quot;) then  -- Dacă navigatorul web nu a încărcat nimic încă, atunci va încărca YouTube&lt;br /&gt;
        outputChatBox(&amp;quot;YouTube nu este încă încărcat, se încarcă acum....&amp;quot;)&lt;br /&gt;
	loadBrowserURL(theBrowser, &amp;quot;https://www.youtube.com/&amp;quot;)&lt;br /&gt;
    else -- Dacă navigatorul web a încărcat ceva&lt;br /&gt;
	outputChatBox(&amp;quot;Youtube este încărcat.&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vizualizați de asemenea==&lt;br /&gt;
{{RO/Funcții CEF}}&lt;br /&gt;
&lt;br /&gt;
[[EN:getBrowserURL]]&lt;br /&gt;
[[hu:getBrowserURL]]&lt;/div&gt;</summary>
		<author><name>Vinyard</name></author>
	</entry>
</feed>