Using jQuery to call an iframe’s parent method

[javascript]
// From inside an iframe
(function($) {
parent.$("#element_in_parent").trigger("event");
} (window.jQuery));
[/javascript]

Leave a Reply