JS:

 1some tipsvar pobj=window.dialogArguments;
 2some tips  if(pobj==null){
 3some tips         //alert(window.top.document.URL);
 4some tips         //alert(window.top.opener.top.document.URL);
 5some tips        window.top.opener = null;
 6some tips        window.top.open('Login.aspx');
 7some tips        window.top.close();
 8some tips        window.top.opener.top.close();
 9some tips  }else{
10some tips         //alert(window.dialogArguments.document.URL);
11some tips         window.dialogArguments.top.opener = null;
12some tips         window.close();
13some tips         window.dialogArguments.top.close();
14some tips  }
第13行和第14行的顺序是千万不能错的,为此偶花了5个小时才找出some tipssome tipssome tips

相关文章: