0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

リンク先を押した際に別タブを開いて表示させる方法

Posted at

自分が普段ネットを閲覧している際に感じてたあー開いてるページ変わった!が割とイラっとするのでそちらの実装をポートフォリオサイトに実装してみた!
調べてみたらとても簡単でした!

aタグ内に**target=”_blank”**を記述するだけ!

<a href="URL" target=”_blank” >

しかし、どうやらこの方法だけだと元のページをJavaScriptで操作できるようになるとのことです!
詳しい説明はこちらの記事に書いてあるので見てみてください!

target="_blank"には気をつけよう


```html
<a href="URL" target=”_blank” rel="noopener noreferrer" >
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?