Hi There,
On my page, I have an iframe within a modal within a modal.
Parent Frame
Parent Modal
Child Modal
Iframe
I have found on the forum a way of making a button that closes all of my modals, so it would act as a “home” button of sorts. This is the snippet I am using (in the parent frame).
jQuery('.closemodal').on('click', function() {
jQuery('#custom-home-button-modal .x-modal-close').trigger('click');
return false;
});
However, I would like to be able to trigger this on the parent frame with two methods from inside the iframe.
Method 1. onclick of a button in iframe
Method 2. after 3 seconds of the page loading
I’ll leave a secure note below with the relevant pages and credentials.
Appreciate any help you’re able to give - I’ve been googling for days and coming up trumps.
Thank you