How to return to home page using javascript?
<p>i am a newbie to jscript.
 i have used this code in javascript to return to home page</p>

<pre><code>function gohome()
{
window.location="../index.html"
}
</code></pre>

<p>and i am calling that function in this code</p>

<pre><code>'&lt;a accesskey="h" id="home" href="javascript:gohome();"&gt;Home&lt;\/a&gt;' +
</code></pre>

<p>there will be link on a page when it is clicked it will call gohome() function.
but same link is appearing on the index page.when clicked it is showing page not found.</p>

<p>How to make this link hide in index.html page?</p>

<p>Can anyone help me??</p>
