首页 > 代码库 > 弹窗提示跳转

弹窗提示跳转

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>T50-弹窗提示</title>
</head>
<body>
</body>

<script type="text/javascript">
function rec(){

var mymessage=confirm("欢迎来到百度");

if(mymessage==true)

{

window.open(‘http://www.baidu.com‘,‘_blank‘,‘height=800,width=1000‘);

}

}

rec();


</script>

</html>

弹窗提示跳转