Java Script is not redirecting using window.location
<p>I am calling the js function from the href </p>

<pre><code>function topicApproval()
{
 var approve = confirm('Do you wish to proceed?');
 if(approve)
 {
 window.location('http://www.sample.com');
 }
}
</code></pre>

<p>Here is the function called Yes</p>

<p>But it is not redirecting........
Please help me..</p>
