Web platform features explorer

document.write()

Discouraged
Tags: api

This feature is discouraged. Consider using DOM instead. For the rationale, see:

The document.open(), document.write(), document.writeln(), and document.close() methods write content to a document, possibly while that document is still loading.

Learning resources on MDN

Browser support

Specifications