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()
I'm not sure if this will work exactly, but I thought of
var docwrite = function(doc) { document.write(doc); };
This solved the problem with the error messages for me.