Question

How to open a URL in a window in "Maximized" mode using Crossrider appAPI.openURL ?

Based on the Crossrider APIs located here, appAPI.openURL , you can open a URL in a new tab or in a window (with width and height) as below:

appAPI.openURL({
    url: "http://www.mysite.com",
    where: "window",
    height: 300,
    width: 500
});

How can you open the window in "Maximized" mode without using the width and height (but not in a new tab but in a new window)? I tried taking out the width and height options, but the window does not open in "Maximized" mode. Any help would be appreciated?

Was it helpful?

Solution

In general, opening a window in FullScreen mode is considered bad practice and is not recommended; hence, the Crossrider appAPI.openURL does not implement this feature. For more information, see Window.open and search for fullscreen in the page.

Having said that, you can try approximating the feature by opening a window with its width and height properties set to the corresponding window.screen properties.

[Disclaimer: I am a Crossrider employee]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top