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().