2016-12-18 2 views
0

그래서 나는 매우 혼란스러운 문제를 발견했습니다.외부 링크 내 웹 사이트 내에서 열림

나는 코드 줄을 사용하는 경우 :

사이트 'www.google.com'은 URL을 내 창이나 탭에서 열립니다

<li><a href="www.google.com" style="margin-right: 40px;">Donate</a></li> 
: https://gyazo.com/6f200273b542d4f91e202a85bc3bc725

그것은 똑같은 경우를 않습니다 나도

어떤 제안이 코드에

target="_blank" 

을 추가? 은`www` 전에 //`:

+4

당신은'HTTP를 필요로 필요 이상. –

+0

일부 브라우저 플러그인을 설치 한 경우 시크릿 미망인에게 사용해 볼 수 있습니까? – Anenth

답변

1

주석의 언급대로 https://

<li> 
 
    <a href="www.google.com" style="margin-right: 40px;">without https</a> 
 
</li> 
 

 
<li> 
 
    <a href="https://www.google.com" style="margin-right: 40px;">with https</a> 
 
</li> 
 

 
<li> 
 
    <a href="https://www.google.com" target="_Blank" style="margin-right: 40px;">https with target blank</a> 
 
</li>