手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >js showModalDialog 弹出对话框的简单实例(子窗体)
js showModalDialog 弹出对话框的简单实例(子窗体)
摘要:复制代码代码如下:showModalDialog弹出对话框(子窗体)functionloadl(){document.getElementB...

<%@ 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">关闭</a>

</div>

<div >

<asp:TextBox ID="context" runat="server" ></asp:TextBox>

</div>

</form>

</body>

</html>

【js showModalDialog 弹出对话框的简单实例(子窗体)】相关文章:

简介JavaScript中的setTime()方法的使用

Javascript特效:随机显示图片的源代码

用JavaScript实现对话框的教程

angular2使用简单介绍

jquery中map函数遍历数组用法实例

javaScript中push函数用法实例分析

JavaScript中的blink()方法的使用

js实现简单div拖拽功能实例

javascript带回调函数的异步脚本载入方法实例分析

游戏人文件夹程序 ver 4.03

精品推荐
分类导航