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

http://www.w3.org/TR/1999/WD-DOM-Level-2-19990923/html.html
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact