In tutorials I\'ve learnt to use document.write. Now I understand that by many this is frowned upon. I\'ve tried print(), but then it literally sen
document.write
print()
This is probably the most correct, direct replacement: insertAdjacentHTML.