How can I get an absolute URL instead of a relative one? [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionI use this code to give my images link, but this code gives me a relative URL
MY Simplified 开发者_如何学GoCode :
<a href="www.google.com"><img src="/upload/banner.jpg" width="374" height="60"></a>
how can I give an exact link?
Use a protocol:
http://www.google.com/
The minimum required to make it domain-absolute is this:
//www.google.com/
which will use the same protocol as the current page (e.g. http or https).
精彩评论