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="jscri pt">
function PageRedirection ()
{
if(!opener)
{
//document.url("S earch.aspx");
//location.replac e("Search.aspx" );
window.location .href = "Search.asp x";
}
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="jscri pt">
function PageRedirection ()
{
if(!opener)
{
//document.url("S earch.aspx");
//location.replac e("Search.aspx" );
window.location .href = "Search.asp x";
}
else
{
window.close();
}
}
</script>
Can someone help???
Thanks in advance
Comment