Close open Desktop Taskpane using office.js or Add-in manifest function

We have created add-in manifest xml file for our application and also embed office.js file. We have use custom ribbon feature by assigning url to icon. When we click on icon, it open task pane on desktop. We want to open third party url in new window of browser using Add-in manifest and taskpane should be close. We have gone through AppDomains and uses Office.addin.hide function. But both solutions are not working. Please provide us solution if exist.

2 answers