0

document.write in js

why is that when coding in the code playground. Every line with the document.write shows a warning of a bug that document.write is a form of eval?

20th Jul 2019, 10:48 PM
Victor Yegon
Victor Yegon - avatar
3 Answers
+ 2
Despite your code is okay, but document.write() is an eval function that is in Jscript there are some functions call eval, these are some free-define function. Therefore, the warning triangle sign is just giving you a caution because eval function are lairs of hackers where they easily can inject malcodes into a website. A.Ra'is
21st Jul 2019, 6:54 AM
Al-Amin Rais
Al-Amin Rais - avatar
+ 2
Thank Ra'is
21st Jul 2019, 6:27 PM
Victor Yegon
Victor Yegon - avatar
+ 1
You are welcome Nig
31st Aug 2019, 10:10 PM
Al-Amin Rais
Al-Amin Rais - avatar