1

Hi , i found these two ways for creating Button in DOJO Framework

<input id="cb" dojotype="dijit.form.Button" name="developer" type="Button" />

<button dojoType="Button" widgetId="helloButton" onClick="helloPressed();">Hello World!</button>

Please tell me if there is any difference between these two ways of creating buttons in DOJO ??

1 Answers1

1

From Dojo's dijit.form.Button documentation, the difference is in the html tag underlying dojo's widget. Here <button> vs. <input type="button" />. Which to use? there is an interesting discussion about html button vs html input with type=button.

The main difference is that the second choice lets you write html content between tags.

Community
  • 1
  • 1
perissf
  • 15,979
  • 14
  • 80
  • 117