/

HTML / CSS / JavaScript Tutorial

JavaScript DOM HTML method: toString()

[this page | pdf | back links]

The toString() method (when applied to HTML elements in the JavaScript DOM) converts the element to string.

 

It has the following syntax with no parameters. It returns a String value as above.

 

element.toString()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile