<html>
<head>
<meta charset="utf-8">
<title>打开一个新页面</title>
<script>
function open_win() {
window.open("http://www.baidu.com","呵呵");
}
</script>
</head>
<body>
<pre>
window.open 第二个参数
呵呵:相当于标记,如果被打开,会对打开的页面进行刷新
</pre>
<input type="button" value="打开窗口" onclick="open_win()">
</body>
</html>
window.open html打开一个新页面
猜你喜欢
转载自blog.csdn.net/qq_36521848/article/details/106203338
今日推荐
周排行