What are the differences between JavaScript browser objects like Button and the DOM interfaces like HTMLButtonElement? When is it appropriate to work with each?

Jayesh Nazre

The W3C standards have defined a set of interfaces that map to the html tags. HTMLButtonElement is one such interface mapping to the input type=button element. Javascript maps the input type=button tag to its object "Button". Coming to the question : When is it appropriate to work with each?

Well you have to use the Button object always in JavaScript. If you need to override the default behaviour of the functions exposed by the HTMLButtonElement interface, then you will have to write a code in C/C++ for it.

Refer the following URL for further references