document.write difference and document.insert
document
Object is the html document object, when the html page is loaded into the Object Browser is the corresponding document object.
document.write
After 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.
insert
And document.write
difference are:
insert
Docuemnt method is not unique to the object, other objects can be used dominsert
Call clears the original content, the content will be used to call the last insert multiple insert the