2016-12-18 4 views
0

私は非常に混乱している問題に遭遇しました。外部リンクは私のウェブサイト内に開きます

私はこのコード行を使用します。

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

サイト「www.google.com」はこのURLで自分のウィンドウまたはタブで開きます:https://gyazo.com/6f200273b542d4f91e202a85bc3bc725

それは場合はまったく同じことを行います私も

任意の提案は、コードに

target="_blank" 

を追加しますか? // `` www`前:あなたの上記のコメントで言及として

+4

を必要としています。 –

+0

いくつかのブラウザプラグインがインストールされている可能性があります。シークレットウィジェットで試してみてください。 – Anenth

答えて

1

は、あなたが `HTTPを必要と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>

関連する問題