The error says:
Error with link: xmlString variable not found.
When you call the parser.parseFromString function, you need to pass the newDOM variable to newDOM like this:
var newDOM ="<div><strong>Error!</strong> Refresh, Please... </div>", parser = new DOMParser(), doc = parser.parseFromString(newDOM, "text/html");
And another newDOM : does not concern this error, but concerns an error in the future: Since your newDOM string is an HTML string, you need to write "text/html" , and not "text/xml" in the second parameter of the parser.parseFromString function.
newDOM, notxmlString. Did you read the text of the error? 2) Nottext/xml, buttext/html- Darth