i am trying to understand when should yui push button be used instead of just standard <html> button. example is given at yui site:
If I just have a button on click of which I should do some calculation, should i use standard <button>, attach event handler to it or should i create a new button using yui button constructor first and then handler?
var oPushButton1 = new YAHOO.widget.Button("pushbutton1");
there is existing code that i have inherited for maintainence and in some plces, button is being instantiated using yui constructor and at other places, only <button> is being used.I am confused between when to use what.
thanks in advance.