当前位置:网站首页>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 .
边栏推荐
- 6. Electron borderless window and transparent window lock mode setting window icon
- Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
- STM32CubeMX,68套组件,遵循10条开源协议
- asp.netNBA信息管理系统VS开发sqlserver数据库web结构c#编程计算机网页源码项目详细设计
- GAN发明者Ian Goodfellow正式加入DeepMind,任Research Scientist
- Oracle Linux 9.0 正式发布
- EfficientNet模型的完整细节
- Electronic remote error
- Notes de l'imprimante substance: paramètres pour les affichages Multi - écrans et multi - Résolutions
- JSON解析实例(Qt含源码)
猜你喜欢
Navigation — 这么好用的导航框架你确定不来看看?
leetcode:648. Word replacement [dictionary tree board + find the shortest matching prefix among several prefixes]
多商户商城系统功能拆解01讲-产品架构
Instructions for mictr01 tester vibrating string acquisition module development kit
JS get the current time, month, day, year, and the uniapp location applet opens the map to select the location
全球首款 RISC-V 笔记本电脑开启预售,专为元宇宙而生!
#yyds干货盘点# 解决名企真题:交叉线
Computer win7 system desktop icon is too large, how to turn it down
Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
多商戶商城系統功能拆解01講-產品架構
随机推荐
Million data document access of course design
Equipment failure prediction machine failure early warning mechanical equipment vibration monitoring machine failure early warning CNC vibration wireless monitoring equipment abnormal early warning
Because the employee set the password to "123456", amd stolen 450gb data?
CVPR2022 | 医学图像分析中基于频率注入的后门攻击
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
LeetCode 648. 单词替换
在软件工程领域,搞科研的这十年!
Navigation — 这么好用的导航框架你确定不来看看?
找到自己的价值
【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
What is cloud primordial? This time, I can finally understand!
LeetCode每日一题(636. Exclusive Time of Functions)
OAuth 2.0 + JWT protect API security
The world's first risc-v notebook computer is on pre-sale, which is designed for the meta universe!
Pytorch model trains practical skills and breaks through the bottleneck of speed
回归测试的分类
How bad can a programmer be? Nima, they are all talents
Five pain points for big companies to open source
leetcode:648. Word replacement [dictionary tree board + find the shortest matching prefix among several prefixes]
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条...