I tried to implement this javascript code taken from the other thread here:
css 'pointer-events' property alternative for IE, but I cannot make it work. When I click the target iframe
element, the desired "click-through" effect did not come to reality. I tried it in jsfiddle.com too but it doesn't work either... I must have missed something important. Can someone show me how to do this code correctly in jsfiddle? Thank You very much.
$(document).ready(function() {
$(document).on('mousedown', '#iframe_1', function (e) {
$(this).hide();
var BottomElement = document.elementFromPoint(e.clientX, e.clientY);
$(this).show();
$(BottomElement).mousedown(); //Manually fire the event for desired underlying element
return false;
});
});
The iframe won't even hide... https://jsfiddle.net/c4vttL6t/