Skip to content

Instantly share code, notes, and snippets.

@blaja blaja/.js
Last active Aug 29, 2015

Embed
What would you like to do?
Not worth a look!
// Navigate to different location using different BOM && DOM API-s. Paralysis of choice :) Are there more ways ?
location = 'https://www.google.com/';
location.href = 'https://www.google.com/';
window.location = 'https://www.google.com/';
document.location = 'https://www.google.com/';
window.location.href = 'https://www.google.com/';
document.location.href = 'https://www.google.com/';
window.location.assign('https://www.google.com/');
document.location.assign('https://www.google.com/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.