I am an ordinary HTML page. I am innocent, and purely for informational purposes. Please do not .innerHTML with document.write() to complete extermination.';" value="exterminate"/> me! The reason that your HTML is replaced is because of an evil JavaScript function: document. write() . It is most definitely "bad form." It only works with webpages if you use it on the page load; and if you use it during runtime, it will replace your entire document with the input.
Comments
Post a Comment