ASP.NET object tag and JavaScript
<p>i m using object tag on my .aspx page</p>

<pre><code>&lt;object data="collapsibles.htm" height="400" width="300" /&gt;
</code></pre>

<p>in data attribute of object tag i refer the other HTML page on that HTML page one image that call the JavaScript function:</p>

<pre><code>&lt;img src="" alt="ipl" style="border: none" onClick="Cal()"&gt;

function Cal() {
    alert('hi All');
    var i = $("#txtMail").val();
    alert(i);
}
</code></pre>

<p>Here 'txtMail' control is on my aspx page. I access it in my HTML page but it give it  JvaScript error: 'undefined'.</p>

<p>My question is: how i can access this control on my HTML page?</p>
