当前位置:网站首页>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 .
边栏推荐
- How bad can a programmer be? Nima, they are all talents
- 低代码平台中的数据连接方式(下)
- MicTR01 Tester 振弦采集模塊開發套件使用說明
- "July 2022" Wukong editor update record
- 一款你不容错过的Laravel后台管理扩展包 —— Voyager
- Base64 encoding
- Differences between cookies and sessions
- Analysis of arouter
- 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
- Pert diagram (engineering network diagram)
猜你喜欢

小程序目录结构

什么是云原生?这回终于能搞明白了!

【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例

CVPR2022 | 医学图像分析中基于频率注入的后门攻击

13 ux/ui/ue best creative inspiration websites in 2022

GAN发明者Ian Goodfellow正式加入DeepMind,任Research Scientist

今日睡眠质量记录78分

设备故障预测机床故障提前预警机械设备振动监测机床故障预警CNC震动无线监控设备异常提前预警

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

MRS离线数据分析:通过Flink作业处理OBS数据
随机推荐
【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
C# 6.0 语言规范获批
Leetcode——236. The nearest common ancestor of binary tree
「2022年7月」WuKong编辑器更版记录
2022PAGC 金帆奖 | 融云荣膺「年度杰出产品技术服务商」
因员工将密码设为“123456”,AMD 被盗 450Gb 数据?
2022年13个UX/UI/UE最佳创意灵感网站
Pytorch model trains practical skills and breaks through the bottleneck of speed
AWS learning notes (III)
JS image to Base64
Instructions for mictr01 tester vibrating string acquisition module development kit
Attribute keywords serveronly, sqlcolumnnumber, sqlcomputecode, sqlcomputed
Analysis of arouter
Similarities and differences between switches and routers
Reading and understanding of eventbus source code
昇腾体验官第五期随手记I
Cocos creator direction and angle conversion
Attribute keywords ondelete, private, readonly, required
Selenium Library
激光雷达lidar知识点滴