1. 程式人生 > >showModalDialog 模態視窗重新整理自己

showModalDialog 模態視窗重新整理自己

var  reus=window.showModalDialog(ur,'Mywindow1','dialogHeight:...');

  if(reus=="ok"){
   window.name = "selfself";//隨便起一個非關鍵詞的name
   window.open(window.location.href, "selfself");
  }