Files
MichaelDimmitt 3c82896d8f Fix image in all sample readmes (#529)
* fix images in readme

* fix all sample readmes by pointing all images to correct apps location
2021-02-25 09:49:17 +11:00
..
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00
2020-12-04 09:18:01 +11:00

Try it now in CWS

New Window API

Sample that shows how to use the New Window API for webviews. The app behaves like a tabbed browser. When actions in we webview request a new tab or window, the browser responds appropriately. For example, clicking links with a foreign target opens a new tab in the foreground; ctrl+clicking a link opens a new tab in the background; Javascript calls to window.open() that identify a different window open a new window.

Features

  • Shortcut keys: Ctrl+t (new tab), Ctrl+W (close tab), Ctrl + [1-9] (select tab)
  • Popup confirmation: An attempt to open a separate window (not a separate tab in the same window) must be explicitly allowed by the user (see screenshot for example of Allow/Deny dilaogue)

Limitations

  • Managing of named windows and setting of new window attributes is not supported. Attempting to open two links in a window named foo will not navigate the same window twice. Attributes (e.g., width, height, resizable) to window.open() will be ignored.

Resources

Screenshot

screenshot