当前位置:网站首页>location.href用法
location.href用法
2022-08-09 08:56:00 【l8487】
top.location.href="/url"
说的是在顶层页面打开url
self.location.href="/url"
说的是仅本页面打开url地址
parent.location.href="/url"
说的是你窗口打开Url地址
应该还有一个this.location.href="/url"
用法和self的用法一致
还有就是如果页面当中有自定义的frame的话,
也可以将parent self top换为自定义frame的名称
效果就是在自定义frame窗口打开url地址
if(window != top){
top.location.href="/login.aspx";
}
边栏推荐
猜你喜欢

XCTF高校战“疫”网络安全分享赛Misc wp

parse <compoN> error: Custom Component‘name should be form of my-component, not myComponent or MyCom

ASEMI整流桥GBJ810参数,GBJ810封装,GBJ810重量

RDMA

【场景化解决方案】搭建数据桥梁,Dslink打通泛微系统连接流

图像识别后将识别结果整理成列表,点击列表可跳转到搜索页面

leetcode 37. 解数独 (困难)

BUUCTF MISC Writing Notes (1)

VNCTF2021 部分题目复现

Kibana:为地图应用选择不同的语言 - Elastic Stack 8.3
随机推荐
RESTful
PoPW token distribution mechanism may ignite the next bull market
Operator Overloading in Inheritance: A Legend of Input and Output
PID控制电机输出作为电机PWM占空比输入的理解
The working principle of switch
【场景化解决方案】构建设备通讯录,制造业设备上钉实现设备高效管理
XCTF College War "Epidemic" Network Security Sharing Competition Misc wp
【愚公系列】2022年08月 Go教学课程 033-结构体方法重写、方法值、方法表达式
LAN Technology - 6MSTP
nodeMCU(ESP8266)和RC522的接线图
Conversion between number systems
基于 JSch 实现服务的自定义监控解决方案
The principle and configuration of VLAN
交换机的工作原理
QT设置exe可执行文件的图标
BUUCTF MISC Writing Notes (1)
jdbctemplate连接sql server,代码中查出来的数据跟数据库中不一致,如何解决?
VNCTF2021 部分题目复现
makefile 遗漏分割符 您的意思是用TAB代替8个空格?
[Vulnerability reproduction] CVE-2018-12613 (remote file inclusion)