windows.open("新窗口地址","新窗口名称","新窗口属性串");
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>打开窗口</title>
</head>
<body>
具有相同名称窗口打开:<br>
<hr>
<input type="button" οnclick="window.open('http://www.baidu.com','mywindow')" value="打开http://www.baidu.com">
<input type="button" οnclick="window.open('http://www.taobao.com','mywindow')" value="打开http://www.taobao.com">
<hr>
具有不相同名称窗口打开:<br>
<input type="button" οnclick="window.open('http://www.baidu.com','mywindows');" value="打开http://www.baidu.com">
<input type="button" οnclick="window.open('http://www.taobao.com','mywindows2');" value="打开http://www.taobao.com">
</body>
</html>
javaScript中窗口打开window.open应用
最新推荐文章于 2023-10-12 11:37:44 发布