I\'m writing an Office Add-in (formerly, Apps for Office). I\'m using office.js and in some point of code I want to check if the app is running in excel (deskto
The question is how do you do it, not why would you want to. There are numerous reasons why you might want to differentiate. Put in this check as follows:
if (window.top == window) {
//the add-in is not running in Excel Online
}
else
{
//the add-in is running in Excel online
}