function showwin(myurl){
window.open(myurl,'newtxt','toolbar=no,location=no,status=no,menubar=no,top=50,left=50,width=700,height=600,scrollbars=yes,resizable=yes,center:yes');
}<a href=javascript:showwin('b.htm');>
window.open(myurl,'newtxt','toolbar=no,location=no,status=no,menubar=no,top=50,left=50,width=700,height=600,scrollbars=yes,resizable=yes,center:yes');
}<a href=javascript:showwin('b.htm');>
解决方案 »
- ext 问题求助
- 请教大师一个jquery的问题
- 两组checkbox,互相disable的问题。
- 求热心高手 一个有难度的框架问题,解决加分到100
- [讨论]提问者的分就像海绵里的水,只要高手愿意挤,总还是有的
- 一个简单的表单提交问题!请指点
- 怎样用javascript检查一个文件是否存在?
- 无法调用变量!请指点!
- IE5.0中showModalDialog是否支持自窗口得到父窗口传递来的对象?
- 这个页面的效果是不是用JavaScript做的?
- iframe页面中用window.close怎样才能关闭父窗口(iframe外的窗口)
- 怎么做个和CSDN一样的显示导航栏的东东,要一模一样的!代码看不懂!
<script>
var myWin=null;
function show(uid)
{
if(myWin==null)
myWin=window.open('b.htm','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,revisable=yes,left=100,top=20,width=710,height=600');
else
window.open('b.htm',myWin,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,revisable=yes,left=100,top=20,width=710,height=600');}
</script>
window.open(myurl,'newtxt','toolbar=no,location=no,status=no,menubar=no,top=50,left=50,width=700,height=600,scrollbars=yes,resizable=yes,center:yes');
}<a href="javascript:void(0)" onClick="showwin('b.htm')">AAA</a>
<a href="javascript:void(0)" onClick="showwin('b.htm')">BBB</a>我试过可以的。
}
比如aa
window.open('a.jsp','aa','width....')
这样就只会有一个了