Actually, if you want a ‘more-efficient’ (and sexier) way, use:
location.href = your_url;
That way, you will save the compiler some time in going up to the location
‘s prototype chain up to the window
object.
More Related Contents:
- How does garbage collection work in JavaScript?
- Get value from AJAX using Javascript and ASP
- Twitter Bootstrap Tabs: Go to Specific Tab on Page Reload or Hyperlink
- How do I render a Word document (.doc, .docx) in the browser using JavaScript?
- How do I chain three asynchronous calls using jQuery promises?
- How to access Session variables and set them in javascript?
- Parsing URL hash/fragment identifier with JavaScript
- JS log object why is showing [object Object]
- How to build query string with Javascript
- Injecting JS functions into the page from a Greasemonkey script on Chrome
- keyCode values for numeric keypad?
- How can I convert a string into a math operator in javascript [duplicate]
- Difference between .tagName and .nodeName
- Convert base64 png data to javascript file objects
- How to bundle vendor scripts separately and require them as needed with Webpack?
- Alter and Assign Object Without Side Effects
- Filter array of objects whose any properties contains a value
- Angular url plus sign converting to space
- How to start an animated SVG on entering viewport?
- Bootstrap Carousel : Remove auto slide
- How does GitHub change the URL but not the reload? [duplicate]
- Javascript click event listener on multiple elements and get target ID
- Remove array item from localstorage
- React, losing saved data in localStorage with useEffect after page refresh
- Find after populate mongoose
- How to create a sleep/delay in nodejs that is Blocking?
- How do I listen for triple clicks in JavaScript?
- How to make only some text in a text-box read-only while allowing the rest to be edited
- d3.js histogram with positive and negative values
- WebSocket: How to automatically reconnect after it dies