打开一个网页并弹窗提示,点击确定后2秒后关闭

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档title>
head>

<body>
<form action="提示窗口.html" method="get">
<input action="提示窗口.html" formtarget="_blank" type="submit" value="提交">
form>
body>
html>

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档title>
head>

<script type="application/javascript">

    alert('提交成功');
    setTimeout("window.close()",2000);
script>
    
<body>
body>
html>

 

转载于:https://www.cnblogs.com/name-hanlin/p/4970334.html

你可能感兴趣的:(打开一个网页并弹窗提示,点击确定后2秒后关闭)