当前位置:网站首页>Several ways of JS jump link
Several ways of JS jump link
2022-07-07 14:42:00 【Snail games】
1、 Jump Links Open... In the current window
1 |
|
2、 Jump Links Open in new window
1 |
|
3、 Jump Links Back to previous page
1 |
|
4、 Jump Links
1 |
|
self Refers to the current window object , Belong to window The top object .
location.href It means something window Object's url The address of
self.location.href Of the current window url Address , Get rid of self The default is... Of the current window url Address , Generally used to prevent external references
top.location.href: Citing test.html page url Of Of the parent window object url
If your web address is :http://www.a.com, Others are http://www.b.com, He uses... On his page iframe Wait for the frame to quote your http://www.a.com, So you can use :
1 2 3 |
|
To go to your page ,top Refers to the main window , here top.location.href return http://www.b.com;
http://www.b.com!=http://www.a.com, Return to true (true), Then the web page will be redirected to your web page , It can prevent theft .
边栏推荐
- 解析PHP跳出循环的方法以及continue、break、exit的区别介绍
- Electronic remote error
- [Yugong series] go teaching course 005 variables in July 2022
- MRS离线数据分析:通过Flink作业处理OBS数据
- Applet directory structure
- WebRTC 音频抗弱网技术(上)
- Oracle Linux 9.0 正式发布
- Cvpr2022 | backdoor attack based on frequency injection in medical image analysis
- CVPR2022 | 医学图像分析中基于频率注入的后门攻击
- Demis Hassabis谈AlphaFold未来目标
猜你喜欢

Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)

多商戶商城系統功能拆解01講-產品架構

2022年13个UX/UI/UE最佳创意灵感网站

Computer win7 system desktop icon is too large, how to turn it down
![[server data recovery] a case of RAID data recovery of a brand StorageWorks server](/img/8c/77f0cbea54730de36ce7b625308d2f.png)
[server data recovery] a case of RAID data recovery of a brand StorageWorks server

asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计

多商户商城系统功能拆解01讲-产品架构

在软件工程领域,搞科研的这十年!

拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...

《微信小程序-进阶篇》组件封装-Icon组件的实现(一)
随机推荐
The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
leetcode:648. Word replacement [dictionary tree board + find the shortest matching prefix among several prefixes]
Computer win7 system desktop icon is too large, how to turn it down
Demis hassabis talks about alphafold's future goals
PD virtual machine tutorial: how to set the available shortcut keys in the parallelsdesktop virtual machine?
Hangdian oj2054 a = = B? ???
Ian Goodfellow, the inventor of Gan, officially joined deepmind as research scientist
【愚公系列】2022年7月 Go教学课程 005-变量
"July 2022" Wukong editor update record
什么是云原生?这回终于能搞明白了!
2022PAGC 金帆奖 | 融云荣膺「年度杰出产品技术服务商」
Applet directory structure
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
Wechat applet - Advanced chapter component packaging - Implementation of icon component (I)
KITTI数据集简介与使用
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
Small game design framework
Hangdian oj2092 integer solution
Shengteng experience officer Episode 5 notes I