首页 > 其他 > 详细

showModalDialog

时间:2018-07-27 10:26:39      阅读:135      评论:0      收藏:0      [点我收藏+]
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>异常提示</title>
<style type="text/css">
.header{
text-align:center;
}

.con{
width:100%;
height:100%;
overflow: auto;
font-size: 14px;
}

</style>

<script type="text/javascript">
var expectMsg = "";
window.onload = function(){
    var parentWin = window.dialogArguments;
    expectMsg = parentWin.form1.expectMsg.value;
    if(expectMsg!=""){
        expectMsg = expectMsg.replace(/\n/g,"<br/>");
        document.getElementById("content").innerHTML = expectMsg ;
    }
}

function confirm(){
    var parentWin = window.dialogArguments;
    parentWin.sendPaperRe();
    this.close();
}
function remove(){
    this.close();
}
</script>
</head>
<body>
<div class="header">
<input type="button" value="确定         "  onclick="confirm()"  /><input  type="button" value="         取消"  onclick="remove()" />
</div>
<br/>
<div id=‘content‘  class="con">
</div>
</body>
</html>

 

showModalDialog

原文:https://www.cnblogs.com/lxh520/p/9376015.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!