当前位置:网站首页>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 .
边栏推荐
- 属性关键字OnDelete,Private,ReadOnly,Required
- Shengteng experience officer Episode 5 notes I
- 小米的芯片自研之路
- 一文读懂数仓中的pg_stat
- AWS learning notes (III)
- 半小时『直播连麦搭建』动手实战,大学生技术岗位简历加分项get!
- Differences between cookies and sessions
- 电脑Win7系统桌面图标太大怎么调小
- The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
- Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
猜你喜欢

STM32CubeMX,68套组件,遵循10条开源协议

EfficientNet模型的完整细节

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

Data Lake (IX): Iceberg features and data types

leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】
![[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

电脑Win7系统桌面图标太大怎么调小

The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!

"July 2022" Wukong editor update record

LeetCode 648. Word replacement
随机推荐
潘多拉 IOT 开发板学习(HAL 库)—— 实验12 RTC实时时钟实验(学习笔记)
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
LeetCode 648. Word replacement
Simple steps for modifying IP of sigang electronic scale
#yyds干货盘点# 解决名企真题:交叉线
Internal sort - insert sort
Million data document access of course design
Leetcode——236. The nearest common ancestor of binary tree
昇腾体验官第五期随手记I
属性关键字ServerOnly,SqlColumnNumber,SqlComputeCode,SqlComputed
ES日志报错赏析-maximum shards open
Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
Mmkv use and principle
Hangdian oj2092 integer solution
Demis hassabis talks about alphafold's future goals
OAuth 2.0 + JWT protect API security
AWS学习笔记(三)
Analysis of arouter
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
MLGO:Google AI发布工业级编译器优化机器学习框架