当前位置:网站首页>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";
}
边栏推荐
- 图像识别后将识别结果整理成列表,点击列表可跳转到搜索页面
- 基于蓝牙定位功能开发的医院智能导航系统
- web3到底是什么?
- requests之模拟登录学习
- [V&N2020 公开赛]内存取证
- The difference between big-endian and little-endian storage is easy to understand at a glance
- makefile - 学习小结
- OpenHarmony Light Smart Product Development Live Notes
- Kibana:为地图应用选择不同的语言 - Elastic Stack 8.3
- The working principle of switch
猜你喜欢
【场景化解决方案】OA审批与金智CRM数据同步
【愚公系列】2022年08月 Go教学课程 033-结构体方法重写、方法值、方法表达式
正则之re模块
数制之间的转换
ctfshow-web入门 文件上传篇部分题解
Getting started with ctfshow-web Part of the file upload part solution
消息中间件(MQ)前置知识介绍(必看)
QT program generates independent exe program (pit-avoiding version)
LAN Technology - 6MSTP
PID控制电机输出作为电机PWM占空比输入的理解
随机推荐
Tencent cloud server is modified to root login to install pagoda panel
正则之re模块
往二维数组追加键值
Account and Permission Management
一篇文章带你熟悉 TCP/IP 协议(网络协议篇二)
[V&N2020 Open] Memory Forensics
hdu2191 多重背包(2016xynu暑期集训检测 -----B题)
【LeetCode每日一题】——225.用队列实现栈
nyoj306 走迷宫(搜索+二分)
QT设置exe可执行文件的图标
js在for循环中按照顺序响应请求
【GNN终身学习】2022 CVPR 终身图学习
【场景化解决方案】构建门店通讯录,“门店通”实现零售门店标准化运营
The difference between big-endian and little-endian storage is easy to understand at a glance
Shell编程之循环语句与函数
+ 6000 words, help you understand the Internet architecture evolution.
智慧图书馆的导航方案-定位导航导览-只用一个方案全部实现
长辈相亲
6000 字+,帮你搞懂互联网架构演变历程!
嵌入式之串口中断只能收到一个字节