+ 1

Document .write

why its necessary to use document .write and if we not use it then what will happen?

23rd Dec 2016, 3:23 AM
Omkar Dolase
Omkar Dolase - avatar
2 odpowiedzi
0
Document is an object that encompasses the whole html document, and write is a method to write directly to the document. document.write is really best for learning, testing and writing to files. If used on an existing html page it can overwrite your document. It is better to use other methods to manipulate the various document object model nodes like getElementById and innerHTML
23rd Dec 2016, 5:31 AM
Antek
0
Then why we write console.log()
2nd Mar 2023, 7:02 AM
SANTONU DAS
SANTONU DAS - avatar