Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

popup-blocker

Open new tab without popup blocker after ajax call on user click

July 30, 2023 by Tarik

Update Oct 2014: It was noted correctly in the comments, that Firefox has deprecated the synchronous setting in June 2014, but it is still working in this browser. Furthermore, Chrome received updates which will only allow this to work as wanted if the ajax call returns in less than a second. Which is rather hard … Read more

Categories javascript Tags javascript, popup-blocker, popupwindow Leave a comment

How do I prevent Google Chrome from blocking my popup?

May 22, 2023 by Tarik

Yes, popups should be a direct result of a user action. Doing them in ajax callback will not do the trick. Also, using async:false is bad – in FF it is known to block the whole browser. Think of some other way to do the check: it could be the first thing you do in … Read more

Categories javascript Tags google-chrome, javascript, popup, popup-blocker Leave a comment

Avoid browser popup blockers

October 15, 2022 by Tarik

The general rule is that popup blockers will engage if window.open or similar is invoked from javascript that is not invoked by direct user action. That is, you can call window.open in response to a button click without getting hit by the popup blocker, but if you put the same code in a timer event … Read more

Categories javascript Tags javascript, modal-dialog, popup, popup-blocker Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa