संदर्भ setContent()

setContent()

Sets the element's content.

An element's content is the text between its tags. For example, the element <language>JavaScript</language> has the content JavaScript.

The parameter, content, is a string with the element's new content.

उदाहरण

सिंटैक्स

setContent(content)

पैरामीटर्स

content
String: new content for the element.

संबंधित संदर्भ