how to change svg text tag using javascript innerHTML August 19, 2023 by Tarik SVG nodes don’t have a innerHTML property (they’re not HTML). Use textContent instead: t.node.textContent="dddd"