0
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 3 years have passed since last update.

HTML input要素のみでbutton要素+a要素の記載を行う(リンク先を指定したボタンの実装)

Posted at

目的

  • クリックして他ページに遷移するボタンを実装する際の方法でinput要素のみでの実装方法を簡単にまとめる

記載例

  • 下記に簡単な書き方の例を記載する。

    <input type="button" onclick="location.href='遷移先のURL'" value="ボタンの表示名">
    
0
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
0
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?