After inserting data into database I want just a preview of the new post - in another tab.
$('#btnpreview').click(function(){
$.ajax({
...
success: function(){
window.open('../view.php?t=preview&id=1', '_blank');
}
});
});
On localhost there is no problem but on remote server the link is blocked by Chrome Pop Up Blocker.
How to solve this?
I see there is a simmilar question here and accepted answer but just the answer not the practical solution. What should I really do following each of given option?