通过javascript新标签 [英] new tab via javascript

查看:53
本文介绍了通过javascript新标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用这段代码

window.location.href =;

但是有问题我想要在新标签页中打开该网址

hello
I'm using this code
window.location.href = "";
but there is problem I want to open that url in new tab

推荐答案

在您的javascript函数中写入



write in your javascript function like

window.open('http://stackoverflow.com/', '_blank');


这篇关于通过javascript新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆