2

Redirection is possible using

window.location = '<url>'
window.location.href = '<url>'
window.location.assign('<url>')

What is the correct way?

  • 2
    Possible duplicate of [Difference between window.location and location.href](https://stackoverflow.com/questions/9903659) **and** [Difference between window.location.href, window.location.replace and window.location.assign](https://stackoverflow.com/questions/7703689) **and** [location.href property vs. location.assign() method](https://stackoverflow.com/questions/10302905) – adiga Dec 06 '17 at 05:44
  • @adiga—you can add multiple duplicates using the *edit* link. ;-) – RobG Dec 06 '17 at 05:50
  • @RobG I don't see it when I edit. Only gold badges? – adiga Dec 06 '17 at 05:53
  • @adiga—dunno, it's a mystery to me… ;-) – RobG Dec 06 '17 at 09:45
  • @RobG couldn't find any meta post on adding multiple dupes. So, I think it's available only to those with the *hammer* :) – adiga Dec 06 '17 at 09:53
  • @adiga—fixerated… – RobG Dec 06 '17 at 10:03

0 Answers0