Skip to content

Instantly share code, notes, and snippets.

@mrroot5
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrroot5/4bb3d5dddfa943f8a92f to your computer and use it in GitHub Desktop.
Save mrroot5/4bb3d5dddfa943f8a92f to your computer and use it in GitHub Desktop.
Abre un pop-up, es bloqueado por navegadores como Chrome From http://stackoverflow.com/questions/5141910/javascript-location-href-to-open-in-new-window-tab
window.open(
'https://mydomain.com/index.php/?param1=X&param2=Y',
'_blank' // <- This is what makes it open in a new window.
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment