js showModalDialog 弹出对话框的简单实例(子窗体)
作者:互联网
2025-08-21
< %@ Page Language="C#" AutoEventWireup="true" CodeFile="showdialog_dialog.aspx.cs" Inherits="WSHelpDoc_showdialog_dialog" % >
复制代码代码如下:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.***w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< html xmlns="http://www.***w3.org/1999/xhtml" >
< head runat="server" >
< title >showModalDialog 弹出对话框(子窗体)< /title >
< script language="javascript" type="text/javascript" >
function loadl()
{
document.getElementById("context").value = window.dialogArguments;
}
function retu_value()
{
window.returnValue = "完成了";
window.close();
return false;
}
< /script >
< /head >
< body onload="loadl()" >
< form id="form1" runat="server" >
< div >
< asp:Button ID="Button1" runat="server" OnClientClick="javascript:return retu_value()"
Text="关闭" / >< /div >
< div >
< a id="biaoqian" onclick="retu_value()" >关闭< /a >
< /div >
< div >
< asp:TextBox ID="context" runat="server" >< /asp:TextBox >
< /div >
< /form >
< /body >
< /html >
相关标签:
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
React vs Vue 优势对比Demo(证明React更具优势)
最新版vue3+TypeScript开发入门到实战教程之路由详解二
src-components调用链与即时聊天组件树
从0开始设计一个树和扁平数组的双向同步方案
拒绝 rem 计算!Vue3 大屏适配,我用 vfit 一行代码搞定
Home双router-view与布局切换逻辑
uniapp uview-plus 自定义动态验证
Vue3 单元测试实战:从组合式函数到组件
VUE-组件命名与注册机制
VTJ.PRO 在线应用开发平台概览
AI精选
