You are viewing a post by feruzz. View all 50 posts in [quote=xavierkym]Wew =( There are tons of tutorials using innHTML with just using different tags and ids :lol: I can't count them honestly. Some of them were rubbish. :puke: I hope we can just com.
just an opinion though XD[/quote]
using DOM methods instead of innerHTML is obviously the more correct course of action.
use of innerHTML is recommended if your need is one way....
that is, you are just presenting content, after which you are [b]"done."[/b]
however, if you need to traverse a DOM branch that you are changing, then you should use [b]"createElement" DOM[/b] methods
in summary, which to use?
the answer is ---> both...it depends on your case