Window.location Working But Not everywhere
<pre><code>var where_to = confirm("You have locked this record. You can only leave by clicking cancel.");

if (where_to== true) {
 alert(window.location);
 window.location.href = window.location;
 } else {
 window.location.href = window.location;
 }
</code></pre>

<p>This function works in IE 7 and firefox and opera 10.6. What it does is not allow a different page to load unless the user clicks a link or button that calls the token function.</p>

<p>The window.location.href is replaced with the current url unless the token function is called.</p>

<p>Thanks for your time.</p>
