自己写模态窗口吧。alert是不能做到的。

解决方案 »

  1.   

    使用下面方法可以达到与Alert类似的效果,用alert函数是没有办法实现的function openView(url)
    {
      var sl=(screen.width)/2-250;
      var st=(screen.height)/2-100;
      theURL=url;
        theDes="status:no;center:no;dialogTop:"+st+";dialogLeft:"+sl+";help:no;minimize:no;maximize:no;dialogWidth:300px;scroll:no;dialogHeight:220px;border:think";  
      var rv=self.showModalDialog(theURL,"Ó¦ÓýÚÄ¿ÐÅÏ¢",theDes);
    }