3 ms·
document.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
by Ambroos 10y ago
document.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...