zoukankan      html  css  js  c++  java
  • 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{
    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(/
    /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>
  • 相关阅读:
    6.11 修饰符的适用范围
    5.10 对象与垃圾回收
    5.9 枚举类
    5.8 java 11增强的Lambda表达式
    5.7 内部类
    5.6 接口
    5.5 抽象类
    5.4 final修饰符
    5.3 类成员
    5.2 Object类中两个需要被重写的方法
  • 原文地址:https://www.cnblogs.com/lxh520/p/9376015.html
Copyright © 2011-2022 走看看