javascript ok cancel pop-up button
<p>I've tried a lot of things, but still can access a .js file from inside a form: please, can anyone tell me how it can be done? </p>

<p>this is what I am trying to call:</p>

<pre><code> &lt;script type="text/javascript"&gt;
    if (confirm("Press 'OK' to leave, or 'Cancel' if you want to stay: "))
    {         
       window.location="http://google.com";
    }
    else
    {         
      &lt;a href="javascript:history.go(-1)"&gt;Go back&lt;/a&gt; 
    }
  &lt;/script&gt;
</code></pre>

<p>this is how I've been trying to call:</p>

<pre><code>&lt;input type="BUTTON" value="Back to Main Page" onclick= ??? &gt;
</code></pre>

<p>Thank you.</p>
