text


textstring

Sets or gets the plain-text content of a TextMarquee element.

Getting the text property returns the plain-text content of the TextMarquee element. If the element contains an SVG icon, it is not included in the returned value.

Setting the text property sets the plain-text content of the TextMarquee element. The current text is replaced, but the optional SVG icon is not affected.

The new text uses the same formatting as the previous text value, and it is duplicated or truncated to fit the width of the element.

Min text length: 1 character
Max text length: 450 characters

Did this help?