Answer the question
In order to leave comments, you need to log in
Creating a child window on the site and keeping track of it?
If a store where you can buy something, it is necessary that if the user does not have enough money in the account when checking, then a window for replenishing the account opens on a new tab, and you can track when it closes. Similar functionality is implemented on VKontakte when trying to send a gift.
window.open - not suitable for this task, because pop-ups created using this method may be blocked by some browsers. What are the ways to solve this problem?
Answer the question
In order to leave comments, you need to log in
Popups will not be blocked if they are called in an onclick trigger, blocking is possible in other cases. It should also be borne in mind that if there is an Ajax request in the trigger function, and there is a callback with window.open on it, then such a popup can also be blocked.
None, you can create a window only with the help of window.open. Or you can play around with frames in the pop-up div, but other sites do not like frames (if you replenish your account through someone else)
Isn't it easier instead of additional windows to send a notification about the lack of money and leave the goods in the basket?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question