Reputation: 65
<html>
<body>
<a href = "www.google.com" target = "blank_">google</a>
</body>
<html>
What I get: www.mysite.com/www.google.com
What I want to get: www.google.com/
Upvotes: 0
Views: 104
Reputation: 79
Thats because you havent written http with the url,
try this
<a href="https://www.google.com" target="_blank">Google</a>
Upvotes: 0
Reputation: 2170
You need to have http://
at the beginning of the URL.
<html>
<body>
<a href = "http://www.google.com" target = "blank_">google</a>
</body>
<html>
Upvotes: 1