请问打开窗口的问题 请问各位有没有做过那种效果第一次点击一个事件:弹出一个窗口newWin下一次点击:如果窗口newWin已经关闭,则重新打开该窗口newWin如果没有关闭,则刷新该窗口newWin. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主这样的话可以用层,来表示,比较好控制,也可以用真的frame,但是不太好控制,也可以用showdialog但是有限制 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title> New Document </title> </head> <body> <input type="button" value="open" onclick="javascript:window.open('http://www.baidu.com','newWin');" /> </body></html> 可以。a.html<html><body><input type="button" value="btn" onclick="javascript:window.open('b.html?xx=xx','aaa','height=500, width=830');"><input type="button" value="btn2" onclick="javascript:window.open('b.html?xx=yy','aaa','height=500, width=830');"></body></html>b.html<html><body><script language="javascript"> document.write(location.href);</script></body></html> window.open()的第二个参数一样就可以。 svg 的 rect标签 fill属性 填充图片 jqeuery easyui datagrid 怎样实行修改批量保存 地址中#的问题(急救) 请教高手:用JS怎么控制一个点 javascript的棘手问题 JS计时求助 请问一下PROMPT()方法是哪个对象的?谢谢~ 只有10分了,请问javascript怎么控制一个单元格的背景图片。急 寻找javascript写的Html编辑器 难解决de问题 ext的mask怎么设置滚动条可以滚动? 有关Javascript判断设置文本框焦点的问题
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
</head> <body>
<input type="button" value="open" onclick="javascript:window.open('http://www.baidu.com','newWin');" />
</body>
</html>
a.html
<html><body>
<input type="button" value="btn" onclick="javascript:window.open('b.html?xx=xx','aaa','height=500, width=830');"><input type="button" value="btn2" onclick="javascript:window.open('b.html?xx=yy','aaa','height=500, width=830');">
</body></html>b.html<html><body>
<script language="javascript">
document.write(location.href);
</script>
</body></html>