D
D
Dmitry2019-10-15 19:36:02
JavaScript
Dmitry, 2019-10-15 19:36:02

Handle js event in Bitrix?

Hello!
How, when adding a product to the comparison, you can track this event, I tried:

BX.onCustomEvent("OnCompareChange",function () {
        alert("sssssssss");
 });

It is required to get json which returns:
/catalog/compare/?action=ADD_TO_COMPARE_LIST&id=1164&ajax_action=Y
How can this be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question