New Windows

๐Ÿ“˜

By default a URL specified in the window.open() JavaScript function will load in a new window within your app similar to how a browser opens a new tab. When new windows are blocked your app will instead open the URL in the current webview. You can also use the Median Javascript Bridge to manually open and close webview windows.

๐Ÿ‘

Developer Demo

Display our demo page in your app to test during development https://median.dev/windows/

Open a new webview window Median JavaScript Bridge

โ†”๏ธMedian JavaScript Bridge

median.window.open({'url':'https://yoursite.com/page'});

Close the current webview window (fails if top level window)

โ†”๏ธMedian JavaScript Bridge

median.window.close();