Multiple choice technology web technology

What property would you use to redirect a visitor to another page?

  1. document.URL

  2. window.location.href

  3. document.location.href

  4. link.href

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

To redirect a visitor to another page, you use window.location.href. Option A's document.URL just gets the current URL, option C's document.location.href is not the standard way, and option D's link.href is for specific link elements.