X
X
xFRAPS2018-03-28 14:30:51
JavaScript
xFRAPS, 2018-03-28 14:30:51

The pop-up closes and redirects to the main page, what's the problem?

Good day,
r.soft.bz/index.php?route=product/product&path=148...
When you click on the test option, a pop-up window opens and redirects to the main one.
I think the conflict is in JS, but I can't find it.
Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fl3nkey, 2018-03-28
@xFRAPS

Why do you have everything wrapped in a form tag ? Clicking on the button ( button ) submits the form.
I suggest not wrapping it in a form tag .
But if for some reason this is still necessary, then you need to assign the type="button" attribute to the buttons .
5abb8d6d45bfe386090297.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question