How to call an onclick javascript function directly in url?
<p>I want to call to a onclick function as I am writting script for MikroTik RouterBoard in order to restart my Modem by just visiting a simple link directly but what I found was that the page from which Modem is rebooting there is a button which calls to a onlick function as :</p>

<pre><code>&lt;input type="button" onclick="btnReset()" value="Reboot"&gt;
</code></pre>

<p>So is there any way that I can Call this onclick function directly in a http url like :</p>

<pre><code>http://admin:hunter@192.168.1.1/resetrouter.html?btnReset()=Reboot
</code></pre>

<p>Here is MikroTik Script which I am writting  but it can't do the job..It need a direct link which it visits only and downloads a file..!</p>

<p>If anyone MikroTik Scripting person can help will be greatful..Until then if there is any way to do it in direct url so then that will be great..!</p>

<pre><code> {
/tool fetch url="http://admin:hunter@192.168.1.1/resetrouter.html?btnReset()=Reboot" mode=http 
}
</code></pre>