Here Mudassar Ahmed Khan has explained how to display a modal popup window using window.open method in JavaScript. BUT, if you wish (is optional), it could also take some arguments (and options, but in this case, it doesnt matter), which you can get in the new window (modal dialog box), Once you know how it works, lets focus on the real issue (Remember that this feature is obsolete, and it has been removed in new versions of browsers, like Chrome or Firefox), If you research on window.showModalDialog in Firefox or window.showModalDialog in Chrome (my project doesnt support Safari. The best way to do that is with the HTML5 element. you can became crazy!!!). Is this is expected behaviour with localStorage ? .one() | jQuery API Documentation Thanks for contributing an answer to Stack Overflow! Not the answer you're looking for? Even if the close button prevents the modal from being shown again, there will still be those (now unnecessary) .height () and .scrollTop () computations for each scroll event; so you'd best. What is the point of Thrower's Bandolier? Hi I am using ouibounce-modal in my website so it appears when the user goes to exit and it works but if they click no thanks button and go to another page and go to exit again the popup appears again so seeing if there is a way that a cookie can be set to only show once per user/visit, it does say it is default to show once per visit/user but it don't seem to be working, below is the coding I . JavaScript in Plain English It's 2022, Please Don't Just Use "console.log" Anymore Somnath Singh in JavaScript in Plain English Coding Won't Exist In 5 Years. How can I explain to my manager that a project he wishes to undertake cannot be performed by the team?