当前位置:网站首页>js源码跳转的几种方式,在当前页面跳转,在空白页跳转
js源码跳转的几种方式,在当前页面跳转,在空白页跳转
2022-08-02 12:25:00 【睡竹】
1、直接在当前页面进行跳转
超链接方式:
<a href="http://www.baidu.com"></a>window.open()方法实现
//当前页面跳转
window.open( url, "_self" )window.location.href 实现
//当前页面跳转
window.location.href =url2、在新页面进行跳转
超链接方式:
<a href="http://www.baidu.com" target="_blank"></a>window.open()方法实现:
//默认打开新窗口
window.open( url )
//打开新窗口
window.open( url, "_blank" )边栏推荐
猜你喜欢

力扣209-长度最小的字符串——滑动窗口法

用位运算为你的程序加速

Likou 35 - search for insertion position - binary search

免费的中英文翻译软件-自动批量中英文翻译软件推荐大全

力扣58-左旋转字符串
![#Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies](/img/bd/22b83e1118a4522f8cb6523fd16043.png)
#Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies

QAbstractScrollArea、QScrollArea

Lexicon 27 - Remove Elements - Simple Questions

How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?

OpenFeign设置header的3种方式
随机推荐
从幻核疑似裁撤看如何保证NFT的安全
unique in numpy & pandas
Metaverse "Drummer" Unity: Crazy expansion, suspense still exists
MD5详解(校验文件完整性)
SQL Server2019安装步骤及脱机安装Microsoft机器学习组件下一步不能继续的问题
免费文档翻译-免费批量文档翻译软件推荐
分布式限流利器,手撕&redisson实现
Drools(8): WorkBench uses
Crack detection technology based on deep learning
SQL Server 2019安装错误0x80004005 服务没有及时响应启动或控制请求详细解决方法
30行代码实现无服务器实时健康码识别--操作手册
以Boost为例的type3电压环补偿器实例
力扣58-左旋转字符串
Leek 151 - Reverse words in a string
#夏日挑战赛#【FFH】OpenHarmony设备开发基础(三)编译依赖
商业流程服务BPass你真的了解吗?
翻译英语的软件-免费翻译软件-各种语言互相翻译
第十四章 手动创建 REST 服务(二)
智能图像分析-智能家用电器图像目标检测统计计数检测与识别-艾科瑞特科技(iCREDIT)
php字符串的截取方式