Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 46
    It was probably that one version of IE where it did stuff wrong and every other browser did it correctly. ;-)
    – Shawn D.
    Commented Oct 8, 2013 at 20:26
  • 9
    in strict mode chrome will throw an exception if you try to assign directly to location too, so I always use location.href
    – Hashbrown
    Commented Oct 18, 2013 at 5:42
  • 10
    "one" version of IE?
    – Lpc_dark
    Commented Jan 4, 2016 at 6:12
  • @Shawn D. A browser doing things correctly? When did that happen! :D Commented Aug 17, 2017 at 10:52
  • @Lpc_dark each one* Commented Sep 3, 2020 at 14:03