Multiple choice technology databases

How do you put a message in the browser's status bar?

  1. window.status("put your message here")

  2. status("put your message here")

  3. window.status = "put your message here"

  4. statusbar = "put your message here"

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

The browser's status bar is accessed through the window.status property and can be set by assigning a string value to it. Option A incorrectly calls status as a function, option B uses a non-existent global status function, and option D references a non-existent statusbar property. The status bar property is accessed as a property of the window object, not called as a method.