打开html页面打开的对话框 [英] dialog to open on html page open
本文介绍了打开html页面打开的对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
感谢您回答这个问题。
解决方案
您可以使用javascript window.showModalDialog函数。它将在模态窗口中显示任何网页。 ie
var winSettings = < span class =code-string> center:yes; resizable:no; dialogHeight:300px;
var myArgs = null ;
window .showModalDialog( http:/ /www.google.com,myArgs,winSettings);
详情请访问此链接 [ ^ ]。
注意:请记住跨浏览器问题在那里。
我发现像Safari,Firefox,IE这样的主流浏览器正在运行。
但它不适用于谷歌Crome。
Thanks for answering the question.
解决方案
you can use javascript window.showModalDialog function. It will show any web page in a modal window. i.e
var winSettings = "center:yes;resizable:no;dialogHeight:300px"; var myArgs = null; window.showModalDialog("http://www.google.com", myArgs, winSettings);
Details please visit this link[^].
Note: Just remember that cross browser issue is there.
I found Major browsers like Safari, Firefox, IE it is working.
But it is not working in google Crome.
这篇关于打开html页面打开的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文