Skip to content

Instantly share code, notes, and snippets.

@mrroot5 mrroot5/open_new_tab.js
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.