ASP.NET里常用的JS(15) /// 函数名:ReplaceOpenerParentWindow /// 功能描述:替换当前窗体的打开窗口的父窗口 /// </summary> /// <param name="openerWindowUrl">当前窗体的打开窗口的父窗口</param> public static void ReplaceOpenerParentFrame(string frameName,string frameWindowUrl) { string js=@"<Script language='JavaScript'> window.opener.parent." + frameName + ".location.replace('"+frameWindowUrl+"');</Script>"; HttpContext.Current.Response.Write(js); }
/// <summary> /// 函数名:ReplaceOpenerParentWindow /// 功能描述:替换当前窗体的打开窗口的父窗口 /// </summary> /// <param name="openerWindowUrl">当前窗体的打开窗口的父窗口</param> public static void ReplaceOpenerParentWindow(string openerParentWindowUrl) {