Which one is better approach window.parent.location.href or window.top.location
<p>I am working in a project where I have to redirect on Error Page in a particular scenario. For that I have created Error.aspx page. Right now I am using 
window.top.location.href = "../Error.aspx" and it generate <a href="http://localhost/app_web/Error.aspx" rel="nofollow">http://localhost/app_web/Error.aspx</a>
and its working fine except once (which shows Message <a href="http://xyz/ErrorPage.aspx" rel="nofollow">http://xyz/ErrorPage.aspx</a>' does not exist. ). So can anyone suggest which is the better option for this.</p>

<p>Thanks</p>
