Skip to content Skip to sidebar Skip to footer

PopUps In Safari

When I try to open a popup in Safari with var win = window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhi

Solution 1:

Safari only allows popups upon user interaction. If you're waiting for other code to execute, you're going to have to open a new window on click, then change the attributes of that window once your code is ready:

var win;
$("#test-modal1").on("click",function(){
    win = window.open("", title, 'toolbar=no, location=no...')
});

// ...other code
// ...when ready, you assign a pageURL to the same window.

win = window.open(pageURL);

Post a Comment for "PopUps In Safari"