码迷,mamicode.com
首页 > 其他好文 > 详细

showModalDialog

时间:2018-07-27 10:52:16      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:nload   doctype   show   height   replace   utf-8   4.0   pre   var   

<%@ 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

标签:nload   doctype   show   height   replace   utf-8   4.0   pre   var   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!