0
<html>
<body>
<a href = "www.google.com" target = "blank_">google</a>
</body>
<html>
我能得到什麼:www.mysite.com/www.google.com試圖鏈接到外部網站
我想什麼:www.google.com/
<html>
<body>
<a href = "www.google.com" target = "blank_">google</a>
</body>
<html>
我能得到什麼:www.mysite.com/www.google.com試圖鏈接到外部網站
我想什麼:www.google.com/
您需要在URL的開頭處有http://
。
<html>
<body>
<a href = "http://www.google.com" target = "blank_">google</a>
</body>
<html>
那是因爲你還沒有與URL書面HTTP,
試試這個
<a href="https://www.google.com" target="_blank">Google</a>