Reputation: 25
open in new tab but allow by popup blocker. Anyone can open this url if his browser setting is popup block is not allowed
window.open('url',);
Upvotes: 0
Views: 88
Reputation: 457
Don't do that. Its like bribing the cops. Majorly popup blockers block script-initiated pop-up windows. Popup blocker can hence be avoided if it's a user action. You can bind an event with button click which might work in most cases. So wherever you are doing your window.open() make sure its initiated by user. You can also consider opening the page with a modal or jQuery UI Dialog
Upvotes: 1