Java学习72

HTML弹窗

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
    function openResult(){    /* 绑定事件 */
        var r = confirm("是否返回")
        if (r == true) {
        window.location.href="登录页面.jsp"
        } else {
            
        }
    } 
</script>
</head>
<body>
    <input type="button" onclick="openResult()" value="退出"/>
</body>
</html>
 

 

posted @ 2020-12-02 10:24  独倚高楼凭栏醉  阅读(50)  评论(0)    收藏  举报