リファレンス createButton()

createButton()

<button></button>要素を作成します。

最初のパラメータlabelは、ボタンに表示されるラベルを設定する文字列です。

2番目のパラメータvalueはオプションです。これはボタンの値を設定する文字列です。 詳細については、 MDN をご覧ください。

実例

シンタックス

createButton(label, [value])

パラメーター

label
String:

ボタンに表示されるラベル。

value
String:

ボタンの値。

リターン

p5.Element: 新しいp5.Elementオブジェクト。
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!

関連するリファレンス