minor fixes
This commit is contained in:
parent
d1a455080d
commit
f9feec2d69
7 changed files with 64 additions and 60 deletions
|
@ -268,7 +268,7 @@ If we're going to open a popup, a good practice is to inform the user about it.
|
|||
- Browsers block `open` calls from the code outside of user actions. Usually a notification appears, so that a user may allow them.
|
||||
- Browsers open a new tab by default, but if sizes are provided, then it'll be a popup window.
|
||||
- The popup may access the opener window using the `window.opener` property.
|
||||
- The main window and the popup can freely read and modify each other if they havee the same origin. Otherwise, they can change location of each other and [exchange messages.
|
||||
- The main window and the popup can freely read and modify each other if they have the same origin. Otherwise, they can change location of each other and [exchange messages](info:cross-window-communication).
|
||||
|
||||
To close the popup: use `close()` call. Also the user may close them (just like any other windows). The `window.closed` is `true` after that.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue