2
2

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.

href="javascript:void(0)"した<a>タグで別ウィンドウが開いた

Last updated at Posted at 2017-05-02
<a href="javascript:void(0);" target="_blank">

<a>タグのデザインを利用しつつリンク機能を抑制するために、このようなコードが書かれていた。

Chromeでは意図した動きになるが、
IE11ではアドレスバーにjavascript:void(0);が入力された状態でタブが開いた。
もちろんtarget属性を付ける必要はないので消して解決。

あまり価値はなさそうだが、こんなこともあったなと一応メモしておく。

Chrome 57.0.2987.133
IE 11.0.9600.17420
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?