jquery - Is there a way to redirect a page on the iPad with javascript without getting the popup warning -
i need redirect file new tab if site being viewed on ipad. have following code in place...
if(ismobile.any()) { window.open(_filename); } else { //code display file in current window or tab on computer } this works fine ipad sees popup , either blocks or throws warning dialog not acceptable client. understand there no way avoid issue using window.open.
if, on other hand, user clicks link opens file in new tab not seen popup ipad , no block or warning. thought this...
if(ismobile.any()) { var markup = "<a class='clickme' href="+_filename+" target='_blank'>click me</a>"; $('.myviewer').append(markup); $('.clickme').click(); } else { //code display file in current window or tab } while works on computer not work on ipad. in thread told should not working on computer, does.
if there someway trigger event on ipad avoid popup blockers wrath.
Comments
Post a Comment