window.open 让窗口位于所有窗口的前边 我用的是window.open("aaa.asp,alwaysRaised=no")没实现 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写错我用的是window.open("aaa.asp,alwaysRaised=yes") 没实现 用showModalDialog("aaa.asp",window,"dialogWidth100px;dialogHeight100px;help:no;scroll:no;status:no"); var newwindow = ''; function popitup(url,target) { if (!newwindow.closed && newwindow.location) { newwindow.location.href = url; } else { newwindow=window.open(url,target); if (!newwindow.opener) newwindow.opener = self; } if (window.focus) {newwindow.focus()} return false; }LZ要用的是模式窗体吧。不是window.open吧。试试window.showModalDialog或者window.showModalLessDialog()参数和window.open一样传 用3楼的showModalDialog模态窗口吧,我也想知道有没有其它能模仿模态窗口的方法。 JS 如何获取数据库中所有的ID,并且写出? js代码解释~ js框架,是选择extjs,prototype还是jq IE和火狐使用dialog的区别 如何点击按钮显示一个DIV,点击页面其它地方隐藏这个DIV? 有谁知道Server端JavaScript? 急!!!用代码怎样来自动对浏览到的图片自动按比例进行缩放?? 怎么作到象http://202.96.140.67/gen/2.html聊天室一样。(难) 怎样获取一个表单里聚焦的element的句柄? 求正则高手!! js函数问题 这样的情况该如何继承呢??
我用的是
window.open("aaa.asp,alwaysRaised=yes")
没实现
if (!newwindow.closed && newwindow.location) {
newwindow.location.href = url;
}
else {
newwindow=window.open(url,target);
if (!newwindow.opener) newwindow.opener = self;
}
if (window.focus) {newwindow.focus()}
return false;
}LZ要用的是模式窗体吧。不是window.open吧。
试试window.showModalDialog或者window.showModalLessDialog()参数和window.open一样传