开发者

Linking to a external Url - currently unsuccessful

开发者 https://www.devze.com 2023-03-01 05:22 出处:网络
When I try link a ext Url such as ww开发者_如何学编程w.facebook.com it currently comes as - mysite.com/music/www.facebook.com

When I try link a ext Url such as ww开发者_如何学编程w.facebook.com it currently comes as -

mysite.com/music/www.facebook.com

Its linked: <a href="www.facebook.com></a> as i link internal urls like <a href=./index.html> etc etc

How to make it work?


I assume you're talking about in HTML. You need the full URL, e.g. http://www.example.com, not just www.example.com.


Try adding an http:// prefix to your URLs: http://stackoverflow.com/faq

You might find the HTML 4.01 specification interesting reading. (Probably not. But pay attention to the 12.4.1 Relative URIs section at the bottom of the page. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消