Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function openNewTab(url) {
- if (! window.open(url) ) {
- var done = false;
- document.onclick = function() {
- if (!done) window.open(url); done = true; return;
- };
- };
- };
- openNewTab("http://twitter.com");
Advertisement
Add Comment
Please, Sign In to add comment