0

What is the difference between using alert and document.write in java script

7th Jun 2018, 1:38 PM
Yash Mohta
Yash Mohta - avatar
3 Respostas
+ 5
Alert shows an alert box to the user with a message that the user has to press "Ok" to continue using the website. The document.write prints something directly to the website and don't require user interaction.
7th Jun 2018, 1:42 PM
prachal goyal
prachal goyal - avatar
+ 1
alert shows a pop up window
7th Jun 2018, 1:41 PM
‎ ‏‏‎Anonymous Guy
+ 1
thanks
7th Jun 2018, 1:41 PM
Yash Mohta
Yash Mohta - avatar