JS 弹出对话框

        如果浏览器是IE,则推荐window.open(参数键值对)

        如果浏览器是非IE之外的浏览器,则推荐使用showModalDialog();

        具体代码如下所示:

         if(window.ActiveX){

window.open(this.href,'', 'height=350,width=400,toolbar=no,location=no,status=no,menubar=no');
}else{
 showModelessDialog('http://www.fwcn.com','example05','dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes')
}
 

 

posted @ 2011-10-16 21:10  老去的JAVA程序员  阅读(124)  评论(0编辑  收藏  举报