javascript - Delay window open on click with JQuery -


Here's an example page:

I'm trying to open a window when clicking a link Is done, but delays the popup so that a message is displayed before the popup occurs. As you can see from the example window Open is not on the click, but on the fade, it triggers a popup blocker because it is not being triggered by user click input. Is it possible to move the window. Open and delay it so that when the link is clicked, the window Open and the model message is closed at the same time, but window. Open 5 seconds delay so that it does not popup blocker trigger? Thanks!

  setTimeout (function () {// window.open call}), 5000);  

This will not be exactly 5 seconds, depending on the browser, how busy it is. But enough of your .click fn. Put in


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -