更新时间:2023-12-02 14:13:22
这个问题,就像@Interrobang所说的(尽管不是那么多的话),是完整的在URL的开头缺少 http://
。留下这部分内容,或者更重要的是 //
,可以让浏览器将网址视为相对于网站而言,而不是另一个网站。
In my website, I have a link that I'm trying to get work. I have a link that follows the normal format, a href, with www.***.com as the target link, and target=_blank at the end. When I click on the link, the website that hosts my website comes up with an error message. When I copy and paste the actual link, I get my webpage with that at the end:
www.example.com/www.***.com
Which is not what I want! I want it to take the user straight to www.***.com in a new tab. Any help?
BTW, the actual code I had entered wasn't working, so if anyone wants to see the code, give me your email in the comments and I will send it to you. Thanks for the help!
The problem, as @Interrobang has stated(although not in so many words), is your complete lack of http://
at the beginning of the url. Leaving this part out, or more importantly the //
, makes the browser treat the url as relative to the site, rather than another site altogether.