<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Browser%3A%3Acall</id>
	<title>Browser::call - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Browser%3A%3Acall"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Browser::call&amp;action=history"/>
	<updated>2026-06-04T19:29:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Browser::call&amp;diff=25474&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot; {{ClientsideJsFunction}} {{JSContainer|  Calls a registered browser `mp.events.add`   ==Syntax== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; browser.call(eventName, ...args); &lt;/syntaxhighlight&gt;  ==Example== CEF (html) &lt;syntaxhighlight lang=&quot;html&quot;&gt; &lt;script&gt;     mp.events.add(&#039;cefishere&#039;, (print) =&gt; {         print ? console.log(&quot;im here&quot;) : console.log(&quot;not here&quot;);     }); &lt;/script&gt; &lt;/syntaxhighlight&gt;   Client Side &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; const browser = mp.browsers....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Browser::call&amp;diff=25474&amp;oldid=prev"/>
		<updated>2024-05-24T17:58:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; {{ClientsideJsFunction}} {{JSContainer|  Calls a registered browser `mp.events.add`   ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; browser.call(eventName, ...args); &amp;lt;/syntaxhighlight&amp;gt;  ==Example== CEF (html) &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt; &amp;lt;script&amp;gt;     mp.events.add(&amp;#039;cefishere&amp;#039;, (print) =&amp;gt; {         print ? console.log(&amp;quot;im here&amp;quot;) : console.log(&amp;quot;not here&amp;quot;);     }); &amp;lt;/script&amp;gt; &amp;lt;/syntaxhighlight&amp;gt;   Client Side &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; const browser = mp.browsers....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
Calls a registered browser `mp.events.add` &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
browser.call(eventName, ...args);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
CEF (html)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
    mp.events.add(&amp;#039;cefishere&amp;#039;, (print) =&amp;gt; {&lt;br /&gt;
        print ? console.log(&amp;quot;im here&amp;quot;) : console.log(&amp;quot;not here&amp;quot;);&lt;br /&gt;
    });&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Client Side&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
const browser = mp.browsers.new(&amp;quot;http://package/page/index.html&amp;quot;);&lt;br /&gt;
browser.call(&amp;quot;cefishere&amp;quot;, false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{Browser_definition_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>