I
I
Ivan Panteleev2011-12-14 23:13:02
JavaScript
Ivan Panteleev, 2011-12-14 23:13:02

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

3 answer(s)
R
rakot, 2011-12-15
@rakot

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.

A
Anatoly, 2011-12-14
@taliban

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)

M
Mikhail Lyalin, 2011-12-15
@mr_jok

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 question

Ask a Question

731 491 924 answers to any question