Make async event synchronous in JavaScript

后端 未结 5 1760
迷失自我
迷失自我 2021-01-14 04:06

I\'m using the WPF 3.5SP1 WebBrowser control to display a page containing some javascript functions. My program then needs to invoke a javascript function which will make an

5条回答
  •  伪装坚强ぢ
    2021-01-14 04:51

    You're possibly thinking of your app as a desktop app. Your C# program isn't connected to anything to be synchronous with. Time for a phase-shift into web-mode.

    The closest you can come is have the javascript callback call ajax for another interchange with the host.

提交回复
热议问题