博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
用window.open函数页面传值
阅读量:7032 次
发布时间:2019-06-28

本文共 1120 字,大约阅读时间需要 3 分钟。

页面1:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MineXueXi.aspx.cs" Inherits="MineXueXi" %>    

页面2:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MineXueXi01.aspx.cs" Inherits="MineXueXi01" %>    

 

/**      *打开模态窗口      *@url 地址      *@width 宽度      *@height 高度      */function showDialog(url, width, height) {    var x = parseInt(screen.width / 2.0) - (width / 2.0); var y = parseInt(screen.height / 2.0) - (height / 2.0);    if (window.ActiveXObject) {        retval = window.showModalDialog(url, window, "dialogWidth:" + width + "px; dialogHeight:" + height + "px; dialogLeft:" + x + "px; dialogTop:" + y + "px; status:no; directories:yes;scrollbars:no;Resizable=no; ");    }    else {        var win = window.open(url, "mcePopup", "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + width + ",height=" + height + ",resizable=no");        eval('try { win.resizeTo(width, height); } catch(e) { }');        win.focus();    }}

 

转载于:https://www.cnblogs.com/yeminglong/archive/2013/06/08/3126565.html

你可能感兴趣的文章
CISCO 6509 日志分析
查看>>
AutoOps 1.8 版本
查看>>
烂泥:centos安装LVM方式
查看>>
写时拷贝(方案一)
查看>>
教程Micropython自制小型家庭气象站(萝卜教育)
查看>>
Redis源码分析系列26:对redis的一点小感触
查看>>
phpstudy 性能调优
查看>>
JDK源码解读(1)ArrayList和LinkedList
查看>>
第22讲: Scala中的闭包实战详解
查看>>
linux信号解释(1)
查看>>
串口DTU设备常见问题处理
查看>>
28.umask值
查看>>
文件操作工具类
查看>>
nginx教程从入门到精通(ttlsa出品)
查看>>
squid日志之access.log格式+内容
查看>>
我的友情链接
查看>>
LVS NAT 模式突然很卡ip_conntrack
查看>>
重拾CCNA,学习笔记持续更新ing......(7)
查看>>
FreeBSD下的开机自启动
查看>>
我的友情链接
查看>>