getViewOpener method
Gets the window (app view) for the current app.
Syntax
var retval = MSApp.getViewOpener();
Parameters
This method has no parameters.
Return value
Type: MSAppView
The window that opened the current view or null if no window opened the view.
Remarks
The getViewOpener method is supported only for Windows Store apps.
The return value represents the named windows that opened the current view, which may not necessarily be the same window reported by the window.parent or window.opener properties.
You can also use this method to determine if the current window is the main window.