'Attach event listeners to different domain from current domain

I was working on some project where in I have a scenario as mentioned below

Parent domain : www.exampledomain.com

Child domain : www.someotherdomain.com

For instance my parent domain is www.exampledomain.com in my parent domain I have a button named capture on click of this button I am loading child domain which has a URL www.someotherdomain.com in a new tab using javascript

Along with loading child domain URL in new tab I am trying to attach eventlisteners to child domain from parent domain.

I am trying to find capture all click actions performed in child domain in parent domain.

I am aware of CORS but I would like to achieve this using JavaScript.

Is it possible? Any pointers highly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source