In one of the scenario's, user wants to write the output to a page. Which of…
2018
In one of the scenario's, user wants to write the output to a page. Which of the following JavaScript commands should be used for the same?
Answer: D. document.write — In JavaScript, document.write() writes output directly to the web page document.
- A.
Jscript.write
- B.
HTML.write
- C.
It is not possible
- D.
document.write
Attempted by 53 students.
Show answer & explanation
Correct answer: D
In JavaScript, document.write() writes output directly to the web page document.
Loading lesson…