Open a modal window within an iframe

If you need to open a modal windows from an iframe, you need to use the nyroModalManual function which is loaded in the parent page. This code will work:[ad code=1]

$(function() {
  $('#myLink').click(function(e) {
    e.preventDefault();
    parent.$.nyroModalManual({
      url: 'test.php'
    });
  });
});

Leave a comment