php - How to make pop up blockers allow your popup windows? -
how make pop blockers allow popup windows?
in general, popping them within event handler of user-generated event. instance, if have link , user explicitly clicks , raise popup onclick
handler on link, popup blockers allow popup because of user's explicit action. in contrast, popups window.load
event, or code executing result of settimeout
or setinterval
call, typically suppressed.
somewhat ot, but: if can avoid using pop-up, would. i'd (unscientifically) 95-99% or of use-cases people think need pop-up, there's better design solution. answer above there 1-5% situations. :-)
Comments
Post a Comment