gpt4 book ai didi

javascript - 在新窗口中打开链接,而不是在新标签页中

转载 作者:行者123 更新时间:2023-11-27 23:58:06 26 4
gpt4 key购买 nike

<分区>

我试图在新窗口中打开链接,尝试了一些代码,但它们在新标签页中显示。任何建议请...

<a href="https://www.google.co.in/" target="_blank" >Demo</a>    // this opens in  new tab

<li onclick="window.open('https://www.google.co.in/')">Demo</li> // this is also opening in new tab

提前致谢

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com