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();