![]() ![]() There is a limitation: a new window cannot be positioned offscreen. left/top (numeric) – coordinates of the window top-left corner on the screen.There must be no spaces in params, for instance: width=200,height=100. It contains settings, delimited by a comma. params The configuration string for the new window. If there’s already a window with such name – the given URL opens in it, otherwise a new window is opened. Each window has a window.name, and here we can specify which window to use for the popup. ![]() The syntax to open a popup is: window.open(url, name, params): url An URL to load into the new window. So the first one is blocked, and the second one is not. The difference is that Firefox treats a timeout of 2000ms or less are acceptable, but after it – removes the “trust”, assuming that now it’s “outside of the user action”. Most browsers block popups if they are called outside of user-triggered event handlers like onclick. So now most browsers try to block popups and protect the user. Jquery popup window on click windows#A bad page could open tons of popup windows with ads. In the past, evil sites abused popups a lot.
1 Comment
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |