popup - How to open a new window in a webpage using javascripts when pop up is blocked -
popup - How to open a new window in a webpage using javascripts when pop up is blocked -
i working on web application, in 1 of page, 3 external links needs opened 1 after in interval of 30 seconds. have used java-scripts functions 'window.settimeout' , 'window.open' requirement. works if pop blocker alternative in browser set false. if pop blocker enabled, first window opened, other windows blocked browser. first window opening because first window associated direct click event but, rest of window openings not associated trusted event. next snippet of code.
<button onclick="openlink()" class="btnstyle">install</button> <script> function openlink() { window.settimeout(function() { window.open("someurl, "_blank");}, 30000); } </script> can guide me how overcome problem. have read somewhere using ajax calls can done, not sure how this. appreciate help.
thanks in advance. chandan popup window.open
Comments
Post a Comment