Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add event listener to iframe

var iframe = document.getElementById('myIFrame');
iframe.contentWindow.body.addEventListener('mouseup', Handler);

function Handler() {
    alert('works');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #event #listener #iframe
ADD COMMENT
Topic
Name
1+7 =