Skip to content

Instantly share code, notes, and snippets.

@blaja
Last active August 29, 2015 14:26
Show Gist options
  • Save blaja/963b98bb1b733bb8c2ea to your computer and use it in GitHub Desktop.
Save blaja/963b98bb1b733bb8c2ea to your computer and use it in GitHub Desktop.
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