[-小技巧-] 不被拦截的弹出窗口,同时推荐一个好站点~
2006-10-31 18:44
639 查看
1. 弹出窗口:
如下代码在IE6SP1,GOOGLE工具条(开启拦截弹出窗口),测试通过
default.htm
以下是代码片段:
var test = window.showModalDialog(’openwindow.htm’,’OpenWindow’,’’);
window.opener = null;
window.close();
openwindow.htm
function openFullScreen(){
window.open("default1.htm","ful
l","fullscreen");//Default1.htm文件为你要弹出的窗口文件
window.returnValue = "TEST";
window.close();
}
openFullScreen();
----------------------------------------
2. 查API挺方便的网站:http://www.gotapi.com/
----------------------------------------
补充:showdialog传值~
主页面中:
…………………………
<form name="printTextForm" jwcid="printTextForm">
<tr>
<td colspan="2" align="center"><input name="PrintText2" jwcid="printtext" onClick=NewWindow()/></td>
<td colspan="2"><input id="PagePrompt" jwcid="pageprompt"/></td>
</tr>
</form>
…………………………
function NewWindow()
{
var obj = new Object();
obj.headpage = newAccountForm.HeadPageText.value;
obj.text = newAccountForm.TranxDataText.value.substr(3);
window.showModalDialog("printheadpage.html",obj,"dialogWidth=400px;dialogHeight=200px");
}
…………………………
在打开的printheadpage.html中,用脚本语言
var obj = window.dialogArguments;
KdbKbdControl1.cPrintText = obj.text;
s = obj.headpage;
……………………………………
就取得了传递的对象
如下代码在IE6SP1,GOOGLE工具条(开启拦截弹出窗口),测试通过
default.htm
以下是代码片段:
var test = window.showModalDialog(’openwindow.htm’,’OpenWindow’,’’);
window.opener = null;
window.close();
openwindow.htm
function openFullScreen(){
window.open("default1.htm","ful
l","fullscreen");//Default1.htm文件为你要弹出的窗口文件
window.returnValue = "TEST";
window.close();
}
openFullScreen();
----------------------------------------
2. 查API挺方便的网站:http://www.gotapi.com/
----------------------------------------
补充:showdialog传值~
主页面中:
…………………………
<form name="printTextForm" jwcid="printTextForm">
<tr>
<td colspan="2" align="center"><input name="PrintText2" jwcid="printtext" onClick=NewWindow()/></td>
<td colspan="2"><input id="PagePrompt" jwcid="pageprompt"/></td>
</tr>
</form>
…………………………
function NewWindow()
{
var obj = new Object();
obj.headpage = newAccountForm.HeadPageText.value;
obj.text = newAccountForm.TranxDataText.value.substr(3);
window.showModalDialog("printheadpage.html",obj,"dialogWidth=400px;dialogHeight=200px");
}
…………………………
在打开的printheadpage.html中,用脚本语言
var obj = window.dialogArguments;
KdbKbdControl1.cPrintText = obj.text;
s = obj.headpage;
……………………………………
就取得了传递的对象
相关文章推荐
- MFC中按下Button按钮,弹出一个窗口的同时关闭本窗口
- 一个可以不被广告拦截器拦截的弹出窗口
- 分享一个:浏览器无法拦截的弹出窗口
- javascript实现点击按钮弹出一个可关闭层窗口同时网页背景变灰的方法
- 分享一个:浏览器无法拦截的弹出窗口
- 推荐一个jQuery弹出模态窗口的插件(源码下载)
- 推荐一个JS弹出窗口LightFace
- 怎么弹出一个既不会被拦截,又是window.open方式实现的最大化弹出窗口?
- javascript实现点击按钮弹出一个可关闭层窗口同时网页背景变灰的方法
- 一个IOS弹出窗口时的小技巧
- 一个可以不被广告拦截器拦截的弹出窗口
- 一个强制弹出窗口的JavaScript类:ForceWindow
- 同时弹出 2个 窗口
- 弹出一个不带地址栏、工具栏的IE非模态窗口
- 创建一个弹出DIV窗口
- IIS站点弹出“输入密码”窗口解决办法
- android在桌面弹出一个窗口
- ERP项目实施:一个顾问同时做六个项目,如何让客户满意? 推荐
- JS弹出新窗口被拦截的解决方法
- 如何让js弹出新窗口不被拦截