1.

What Is The Difference Between Innertext And Innerhtml Property?

Answer»

INNERTEXT:- The innerText property of the object REFERS to the text contained in the ELEMENT.

innerHTML:-The innerHTML property is similar to innerText,but it can include XHTML FORMATTING.

innerText:- The innerText property of the object refers to the text contained in the element.

innerHTML:-The innerHTML property is similar to innerText,but it can include XHTML formatting.



Discussion

No Comment Found