How can I inject javascript into the Modal Dialg and Modeless Dialog by BHO?

问题 How can I inject javascript into the Modal Dialg and Modeless Dialog by BHO?

  • 2012年3月7日 8:17
     
     

    How can I inject javascript into the dialogs shown by showModalDialog and showModelessDialog?

    Also, How could I let those javascript code access to methods of my BHO?

    Thanks,

    Calvin

全部回复

  • 2012年3月9日 2:56
    版主
     
     

    Hello,

    The mode or modeless dialog mentioned in your thread which created by Javascript or create by BHO.

    As far as I know, injecting javascript let us run javascript function when we inject it. If we can get the element of that dialog, we can change something in that.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年3月9日 5:37
     
     

    The modal or modeless dialog is created by javascript window.showModalDialog() or window.showModelessDialog().