Home » ★HTMLタグリファレンス

★HTMLタグリファレンス

<INPUT type=”button”> …… フォームの汎用ボタンを作成する
Internet Explorer4Internet Explorer5Internet Explorer5-macInternet Explorer5.5Internet Explorer6Internet Explorer7Internet Explorer8Internet Explorer9
Netscape4Netscape6Netscape7Netscape8
Opera6Opera7Opera8Opera9Opera10
Firefox1Firefox2Firefox3Firefox4
Google Chrome1Google Chrome2Google Chrome3Google Chrome4Google Chrome5Google Chrome6
広告



このページでは、HTML5のinput要素のtype=buttonを解説しています。
input要素のtype=buttonの最新情報は、以下を参照してください。

<input>タグのtype属性の値にbuttonを指定すると、特に機能を持たない汎用ボタンを作成します。
汎用ボタンはJavaScriptなどと組み合わせて使用されることが多いようです。

■属性

type=”button”
汎用ボタンを作成する
name
ボタンに名前をつける
value
ボタンに表示されるテキストを指定する

■使用例

HTMLソース

<p>
<input type=”button” value=”前のページへ戻る” onclick=”history.back()”>
</p>

↓↓↓

ブラウザ上の表示

■HTML5情報

<input type=”button”> …… 汎用ボタンを作成する
広告



Lorem Ipsum is simply dummy text

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.