- 在当前窗口打开,可后退
<a href="http://baidu.com" target="_self">
- 在当前窗口打开,不可后退
function open(){location.replace("http://baidu.com");} <a href="javascript:open()">
- 在新窗口打开,可打开多个
<a href="http://baidu.com" target="_blank">
- 在新窗口打开,只能打开一个
<a href="http://baidu.com" target="baidu">
打开新链接方式总结
最新推荐文章于 2024-05-17 14:47:47 发布