<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript">
function moven(){
var success =confirm("你确定好了没")
if(success){
window.location ="http://baidu.com"
}
}
setTimeout(moven,1000);
</script>
<body style="background-color: red">
</body>
</html>
<html>
<head>
<title></title>
</head>
<script type="text/javascript" src="jquery-1.8.3.min.js"></script>
<script type="text/javascript">
function moven(){
var success =confirm("你确定好了没")
if(success){
window.location ="http://baidu.com"
}
}
setTimeout(moven,1000);
</script>
<body style="background-color: red">
</body>
</html>