javascript dom parser to string code example Example: javascript parse to string var bar = foo.toString();