What is the equivalent code of `Response.Redirect("~/abc.aspx") in java script?
<p>What is the equivalent code of <code>Response.Redirect(~/Account/Login.aspx");</code> in javascript?</p>

<p>I tried : <code>window.location="~/Account/Login.aspx"</code> but the <code>~</code> is not accepted in javascript. so, what is the alternative code?</p>

<p>Note: the javascript script is made in the server side in the <code>Page_Load</code> method by using <code>ClientScript.RegisterClientScriptBlock</code>.</p>
