R
Renuka
I have a confirmation page with an OK button. If this window has an
opener then this browser window needs to go to another URL or else the
window must close.
Thus I have the following javascript to achieve the above which does
not work:
<script language="jscript">
function PageRedirection()
{
if(!opener)
{
//document.url("Search.aspx");
//location.replace("Search.aspx");
window.location.href = "Search.aspx";
}
else
{
window.close();
}
}
</script>
Can someone help???
Thanks in advance
opener then this browser window needs to go to another URL or else the
window must close.
Thus I have the following javascript to achieve the above which does
not work:
<script language="jscript">
function PageRedirection()
{
if(!opener)
{
//document.url("Search.aspx");
//location.replace("Search.aspx");
window.location.href = "Search.aspx";
}
else
{
window.close();
}
}
</script>
Can someone help???
Thanks in advance