Multiple choice technology web technology

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

  1. statusbar = "put your message here"

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

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

  4. status("put your message here")

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

The browser status bar can be accessed via the window.status property in JavaScript, not as a method. Option C correctly assigns a string value to this property. Options A and D reference non-existent objects, and option B incorrectly tries to call status as a function when it's actually a property. Note that modern browsers often disable status bar manipulation due to security considerations, so this may not work in all browsers.