//關閉,父視窗和子視窗都不彈出對話框,直接關閉
this.Response.Write("<script>");<BR>this.Response.Write("{top.opener = null;top.close();}");<BR>this.Response.Write("</script>");
//彈出視窗刷新目前頁面width=200 height=200選單。選單列,工具列,網址列,狀態列全沒有
this.Response.Write("");
//彈出視窗刷新目前頁面
this.Response.Write("");
this.Response. Write("<script>window.open('WebForm2.aspx','_blank');</script>");
//彈出提示視窗跳到webform2.aspx頁(在一個IE視窗)
this.Response.Write(" ");
//關閉目前子視窗,刷新父視窗
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;window.close();</ script>");<BR>this.Response.Write("<script>window.opener.location.replace(window.opener.document.referrer);window.close();</script>");
//子視窗刷新父視窗
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;</script>");
this .Response.Write("<script>window.opener.location.href='WebForm1.aspx';</script>");
//彈出提示視窗.確定後彈出子視窗(WebForm2.aspx)
this.Response.Write("");
//彈出提示視窗,確定後,刷新父視窗
this.Response.Write("<script>alert('發表成功!');window.opener.location.href=window.opener.location .href;</script>");
//彈出相同的一頁
//
Response.Write("parent.mainFrameBottom.location.href='yourwebform.aspx?temp=" str "';");
'newwin':隱藏選單列網址列工具條
width=50:寬度
height=50:高度
scrollbars=yes/n捲軸
top=50:視窗距離螢幕上方
left=50:視窗距離螢幕左側
例: