html打开一个链接和JavaScript打开一个链接

html 打开一个链接

target的属性值设为_blank,表示在新的窗口打开页面。

<a href="http://www.kugou.com/fmweb/html/index.html" target="_blank">电台</a>

JavaScript打开一个链接

window.location.href="http://www.kugou.com/yy/html/singer.html";