call a javascript function in an IFrame

1 reply. Last post: December 11, 2009 11:22 AM by john frost
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
john frostMember

I have a WebTab with two TabPages - each using the IFrame ContentMode.  I am trying to call a javascript function in one of the IFrame pages from the page containing the WebTab control. 

 

I have tried using the GetIFrameWidow as well as the contentWindow method but both do not work.  Any suggestions?

    function test() {
        var tab = ISGetObject("WebTab1");
        var win = tab.GetIFrameWindow("IFrame");
        alert(win.name);
        //win.test2();
        //document.getElementById('IFrame').contentWindow.test2();
    }

Thanks!

All times are GMT -5. The time now is 8:09 PM.
Previous Next