各种打开新页面
来源:互联网 发布:开淘宝的保证金在哪退 编辑:程序博客网 时间:2024/05/18 09:34
//服务器端 在整个页面的打开新窗口
window.parent.parent.location.href = '../login.aspx';
//在另一个框架打开新页面
window.parent.mainFrame.location.href = 'NewsManage.aspx?type=0';
//几秒后自动跳转页面
<meta http-equiv="Refresh" content="5;URL=http://XXX" />
//frameset框架 利用target打开
window.open('test.htm', 'mainFrame');
1. window.location 法,代码如下
<body onload="window.location='http://xxxxx';"></body>
2. 框架法,代码如下
<frameset cols="100%,*">
<frame src="http://xxxxx" scrolling="auto">
</frameset>
其中scrolling参数值得注意,合理使用可加强隐蔽性。Cols参数可根据自己的实际情况作更改。
3. META标志法,代码如下
<META HTTP-EQUIV="Refresh" CONTENT="0;URL= http://xxxxx">
其中CONTENT后面的阿拉伯数字是代表过几秒中钟转入目标网页。
4. iframe内帧法
<iframe src="http://xxxxx" width="0" height="0" frameborder="0">
5.
在window.open()函数中增加一个参数,将target设置为‘self’,
即改为使用: window.open('link','_blank'); 等同window.location.href="link"
6.
<a href= "# " onclick= "window.showModalDialog( 'link') "> 点击 </a>
7.
function replyMessage(id)
{
var win = window.open('Reply.aspx?originMessage= '+id,'_blank');
if (win == null)
window.alert( "请不要启用弹出式窗口拦截 " );
}
8.
window._open=window.open;
window.open=function(sURL,sName,sFeatures,bReplace){
if(sName==undefined){sName="_blank"};
if(sFeatures==undefined){sFeatures=""};
if(bReplace==undefined){bReplace=false};
var win=window._open(sURL,sName,sFeatures,bReplace);
if(!win){
alert('天啦!你的机器上竟然有软件拦截弹出窗口耶,好讨厌哦,人家不来了啦!快去掉嘛~~555~');
return false;
}
return true;
}
- 各种打开新页面
- 各种打开新页面的方式总结
- asp.net各种打开新页面的方式总结
- 打开新页面
- Javascript打开新页面
- js 打开新页面
- 打开新页面方法
- winForm新页面打开
- js打开新页面
- C#打开新页面
- js打开新页面
- 打开新页面
- vue打开新页面
- Showmodaldialog打开新页面解决问题
- 跳转菜单打开新页面
- WebBrowser中打开新页面
- WebBrowser中打开新页面
- window.open 打开新页面
- 给一岁儿子定的家规
- Eclipse快捷键大全
- js获取表格的当前行
- js取url参数
- js去前后空格
- 各种打开新页面
- listbox之间的移动
- FCKeditor使用手册
- C#语言 第四部分 图形界面编程(六) 分组容器和卡片容器(1)
- 在SQL Server中如何获得刚插入一条新记录的自动ID号
- sql server 创建表时为列添加说明
- GPRS Iu 模式下的移动管理状态介绍 (Iu mode Mobility Management States)
- 带滚动条的div
- GPRS A/Gb 模式下的移动管理状态介绍 (A/Gb mode Mobility Management States)