javascript - How to open a new window in mobile browser? -


i opening new window in pc browser using window.open(url, '_blank') works perfectly. how can same thing in mobile browser? window.open seems not working of mobile browsers. 1 thing can done simulating href operation, need child window on close event in parent window.

var new_window = window.open(some_url,"_blank"); var timer = setinterval(function () {                                 if (new_window.closed) {                                     callback();                                     clearinterval(timer);                                 }                             }, 500); 

if window.open call not result of click event, browser typically treats popup , blocks it. if didn't, mobile browser tend have 1 active tab @ time, can't manipulate 1 window using window.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -