Multiple choice technology architecture

What will happen when you use document.write in Web page?

  1. Opens a new browser window.

  2. Holds the Title of the page.

  3. Lets you write text to the current web page.

  4. Moves the browser to a page on the browser’s history.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

document.write() directly outputs text to the current web page's document stream. It's a simple way to write content, though modern practices favor DOM manipulation methods. Opening new windows involves window.open(), holding page titles uses document.title, and browser history navigation uses history.back() or history.forward().