+ 1
Someone mentioned that document.write breaks your HTML. What should I then use?
6 Antworten
+ 4
You should never use document.write to make any webpages, use dom element access methods of document object instead, which are getElementById, getElementsByClassName, getElementsByTagName, getQuerySelector, getQuerySelectorAll.
0
Can you give me an example?
0
Thanks 😁