"Function expected" error when updating frames with javascript in IE9
<p>We're using some javascript to update a child frame. This has been working fine in IE7 and IE8 but only works in IE9 when compatibility mode is switched on. I've added the code fragment below. I've tried various solutions including using window instead document but nothing seems to work. The error "Function expected" is always given.</p>

<p>Any help be would much appreciated!
Thanks, Andrew</p>

<pre><code> &lt;script language="jscript"&gt;
 function UpdateContent(strAddress) {
       document.frames("content").document.location.replace(strAddress);
                    }
&lt;/script&gt;
</code></pre>
