showModalDialog

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

 

posted @ 2018-07-27 10:19  aLa神灯  阅读(121)  评论(0编辑  收藏  举报