Run Meta Http line contionally in javascript
<p>I am new to javascript, and wondering if can only ruth html meta line conditionally.  I basically want to navigate to Mypage only when the if statment is true.</p>

<pre><code>&lt;SCRIPT type='"text/javascript"'&gt;
if(true)
Execute the below meta http (Navigate to Mypage.aspx)
else
stay here
&lt;/SCRIPT&gt;
&lt;meta http-equiv="refresh" content="10;url=http://MyPage.aspx"&gt;
</code></pre>

<p>Thanks.</p>
