# Document.write difference and document.insert

document.write difference and document.insert

documentObject is the html document object, when the html page is loaded into the Object Browser is the corresponding document object.

document.writeAfter the call has finished loading the document will cover the entire document, but the call in the document loading process would then be inserted into a document which, if it is called multiple times document.wirte, then the text will be merged.

insertAnd document.writedifference are:

  • insertDocuemnt method is not unique to the object, other objects can be used dom
  • insertCall clears the original content, the content will be used to call the last insert multiple insert the

Guess you like

Origin www.cnblogs.com/freesfu/p/11516706.html
Recommended