如何在javascript中创建一个模态窗口? [英] How can I create a Modal window where i cn register a page in javascript?
本文介绍了如何在javascript中创建一个模态窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建模态窗口,我可以在java脚本中注册页面?
请帮我创建这个。
解决方案
第1步:Frist创建一个div。
< div id = 对话框 style < span class =code-keyword> = display:none >
< iframe id = showp age runat = server height = 400 width = 650 src = < span class =code-keyword>> < / iframe >
< / div < span class =code-keyword>>
< asp:HiddenField ID = hdnPopUp runat = server / >
< / div >
第2步:创建Java脚本函数
function showDialog(){
(function(){
// Dialog
(' #dialog')。dialog({
模态: true ,
// autoOpen: false,
宽度: 650 ,
hight: 400 ,
close:function( event ,ui){
How can I create a Modal window where I can register a page in java script?
Please help me to create this.
解决方案
Step 1: Frist create a div.
<div id="dialog" style="display: none"> <iframe id="showpage" runat="server" height="400" width="650" src=""></iframe> </div> <asp:HiddenField ID="hdnPopUp" runat="server" /> </div>
Step 2: Create a Java script function
function showDialog() {
(function () { // Dialog
('#dialog').dialog({ modal: true, //autoOpen: false, width: 650, hight: 400, close: function (event, ui) {
这篇关于如何在javascript中创建一个模态窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文