Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
Pankaj Kumar
iframe click event not working.
January 3, 2017 11:07 PM

Pankaj Kumar

Rank: Junior Member

Posts: 63

Join Date: July 27, 2014

Recent Posts


I have to perform some action on click of iframe.Once i execute the script i get following exception.
getting this exception Dom Exception: Blocked a frame with origin "https://............. " from accessing a cross-origin frame.

Below is the code for script.

var iframe ='iframe.common-structure-video');

iframe.getDOMNode().contentWindow.document.onclick = function(e){

Pl. let me know how can i get this working.

Thanks & Regards,
Pankaj Semwal

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!