Accessing elements outside of iFrame using jQuery

0 Min. Read
Sep 30, 2014

 Rails Ruby JS iFrame Access
1
2
3
4
5
6
// window.parent gives you access to the Parent document of iFrame
// This code is supposed to be accessed inside of iframe//

$('#close-button').click(function () {
    window.parent.$('#new_button').magnificPopup('close');
 });

You might also like

window.parent gives you access to the Parent document of iFrame. This code is supposed to be accessed inside of iframe
Read More..


Write To Me

Hire me shiva bhusal
We'll never share your email with anyone else.
I'll never share your email with anyone else.