We are creating an office add in where on button click we are posting data to new web page but expecting page should open in same browser window.
Currently it is not possible as add in pane is inside iframe and has sandbox attribute applied to it. is there any setting present though which we can add "allow-top-navigation" value in sandbox attribute?
There are two possible interpretations of what you're asking:
(1) is supported: use a normal navigation API (like location.href) and ensure that your add-in manifest file includes the destination domain in the list of AppDomains.
(2) is not supported.
-Michael (PM for add-ins)