<p>I have a page, with some code in js and jQuery and it works very well. But unfortunately, all my site is very very old, and uses frames. So when I loaded my page inside a frame, <code>$(document).ready()</code> doesn't fire up.</p>

<p>My frameset looks like:</p>

<pre><code>&lt;frameset rows="79,*" frameBorder="1" frameSpacing="1" bordercolor="#5996BF" noresize&gt; 
    &lt;frame name="header" src="Operations.aspx?main='Info.aspx'" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0"&gt;
    &lt;frame name="main" src="Info.aspx" marginwidth="0" marginheight="0" scrolling="auto" noresize frameborder="0"&gt;      
&lt;/frameset&gt;
</code></pre>

<p>My page is loaded into the <code>main</code> frame. What should I do?</p>

There is no reason for
```
$(document).ready()
```
not to be called.
Be sure your page contains an include to
```
jquery.js
```
. Try to do a simple test with an empty HTML page and just an alert to see if there is another problem.
If you are trying to use this inside the HTML page that contains the frame's definition, keep in mind that there is no document there, you will have to use the