Created
March 27, 2012 18:49
-
-
Save AlbertoMonteiro/2219107 to your computer and use it in GitHub Desktop.
Avoid popup blocker with bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function () { | |
document.querySelector("#abc").onclick = function() { | |
window.location = 'javascript:window.open("http://www.google.com.br", null, "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,left=685,top=0");void(0);' | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment