I fire click events from the parent window into the built-in iframe (of the same origin), and I have no problem picking up the event, but I cannot access the custom parameters. That's what I'm doing...
Parent:
var iframe_doc = window.child_frame.document; var clickEvent = jQuery.Event("click"); clickEvent.fromParent = true; $("p", iframe_doc).trigger(clickEvent);
Child (iframe named child_frame):
$(document).click(function(e){ if(typeof e.fromParent === 'undefined' || e.fromParent != true) {
When I do something similar in the context of only one page, this is not a problem, and I see this event. But between documents, the fromParent property fromParent not set. Is this what I'm trying to do is even possible?
Thanks!
source share