User1535942433 posted
Hi RaghuMasineni,
Accroding to your description,as far as I think,you could use window.open('close.html', '_self', null);
More details,you could refer to below codes:
<head>
<meta charset="utf-8" />
<title></title>
<script language="javascript" type="text/javascript">
var redirectTimerId = 0;
function closeWindow() {
window.opener = top;
redirectTimerId = window.setTimeout('redirect()', 2000);
window.close();
}
function stopRedirect() {
window.clearTimeout(redirectTimerId);
}
function redirect() {
window.location = 'WebForm37.aspx';
}
</script>
</head>
<body onload="closeWindow()" onunload="stopRedirect()" style="">
<center><h1>Please Wait...</h1></center>
</body>
protected void Button1_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.open('close.html', '_self', null);", true);
}
Best regards,
Yijing Sun