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.writeIn JavaScript, document.write() writes output directly to the web page document.

  1. A.

    Jscript.write

  2. B.

    HTML.write

  3. C.

    It is not possible

  4. 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…