How to write the javascript function calling the asp.net button click() event in asp.net?
<p>i am writting the javascript function like this</p>

<pre><code> function PreviewImg(imgFile, labelid,frameid) {
labelid.innerHTML = imgFile.value;
document.getElementById('btnupload').click();
}
</code></pre>

<p>Above code  <strong>document.getElementById('btnupload').click();</strong> is the error but firfox browser is supported but i have support IE8 , pls give me suggestion
error is <code>htmlfile: Access is denied.</code></p>
