我想在点击时打开一个窗口,但是我想在当前窗口后面打开它,或者当新窗口打开时它应该最小化本身。我做了一个功能,但它实际上没有工作。使用Javascript/jQuery在当前窗口后面打开一个窗口
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function wn(){
var mm=window.open('http://www.google.com','newwindow','width=200, height=200', "_blank");
}
</script>
</head>
<body>
<a href="#" onclick="wn()">click</a>
</body>
听起来像危险的那些点击,烦人,弹出式广告... – dda 2012-07-10 05:36:39
谷歌“背后弹出式窗口。 “基本上你是window.open,接着是window.focus。 – 2012-07-10 05:47:08
GGG:它不工作 – Carlos 2012-07-10 09:26:14