2 ms·
Is it still okay to use document.write for object and embed tags?
by nikbackm 10y ago
Is it still okay to use document.write for object and embed tags?
- Ambroos 10y agodocument.write can and should be avoided whenever you're writing new code. So while it'd probably still work, you should really look at a modern/async way to do the same.
- Grom_PE 10y agodocument.write is still the only way to overwrite the current page completely, for use in userscripts: https://github.com/grompe/Drawception-ANBT/blob/b9aeb21efdcc53c2a60929ee1fdae5eedd0d21fd/drawception-anbt.user.js#L217 https://github.com/grompe/Drawception-ANBT/blob/b9aeb21efdcc...