office-js-helpers

Office.js web WORD add-in: window.open() method is not working with “about:blank” URL

£可爱£侵袭症+ 提交于 2019-11-28 06:51:10
问题 Summary : window.Open('') or window.Open('about:blank') works with JavaScript in a normal html file as can be tested here. But it does not seem to work in an Office.js add-in. Details : On my Windows 10 desktop with VS2017 I created this Office.js WORD add-in project that works perfectly with my Microsoft Office Home and Student 2016 edition. In the same project, I then created a new button btnTest in the home.js file. When I click btnTest it successfully calls the following MyTest method and