mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-29 13:49:41 +07:00
* fix images in readme * fix all sample readmes by pointing all images to correct apps location
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
foowill not navigate the same window twice. Attributes (e.g., width, height, resizable) towindow.open()will be ignored.

