Javascript autoclick not working
<p>I am using a script to make tables in html sortable. The script is here- <a href="http://www.kryogenix.org/code/browser/sorttable/" rel="nofollow">http://www.kryogenix.org/code/browser/sorttable/</a>. I want the text which sorts the html table to be clicked automatically when the i loaded. The autoclick script i am using is this-</p>

<pre><code>&lt;head&gt;
&lt;script LANGUAGE='javascript'&gt;
function autoClick(){
document.getElementById('sort').click();
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload="autoClick();"&gt;
&lt;table&gt;&lt;tr&gt;&lt;th&gt;&lt;p id="sort"&gt;Click here to sort the table&lt;/p&gt;&lt;/th&gt;...
</code></pre>

<p>The problem is that this is not working and i am confused that why this isnt working.</p>

<p>--------------------EDIT------------------</p>

<p>Sorry for this but actually i was typing something wrong in the body onload statement. Thus the script i was using was correct.</p>
