Skip to content

Commit 1d13d11

Browse files
Update article.md
1 parent af9b339 commit 1d13d11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

3-frames-and-windows/01-popup-windows/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Basically, you just run:
77
window.open('https://javascript.info/')
88
```
99

10-
...And it will open a new window with given URL. Most modern browsers are configured to open new tabs instead of separate windows.
10+
...And it will open a new window with given URL. Most modern browsers are configured to open url in new tabs instead of separate windows.
1111

1212
Popups exist from really ancient times. The initial idea was to show another content without closing the main window. As of now, there are other ways to do that: we can load content dynamically with [fetch](info:fetch) and show it in a dynamically generated `<div>`. So, popups is not something we use everyday.
1313

1414
Also, popups are tricky on mobile devices, that don't show multiple windows simultaneously.
1515

1616
Still, there are tasks where popups are still used, e.g. for OAuth authorization (login with Google/Facebook/...), because:
1717

18-
1. A popup is a separate window with its own independent JavaScript environment. So opening a popup from a third-party non-trusted site is safe.
18+
1. A popup is a separate window which has its own independent JavaScript environment. So opening a popup from a third-party, non-trusted site is safe.
1919
2. It's very easy to open a popup.
2020
3. A popup can navigate (change URL) and send messages to the opener window.
2121

@@ -89,7 +89,7 @@ There is also a number of less supported browser-specific features, which are us
8989

9090
## Example: a minimalistic window
9191

92-
Let's open a window with minimal set of features just to see which of them browser allows to disable:
92+
Let's open a window with minimal set of features, just to see which of them browser allows to disable:
9393

9494
```js run
9595
let params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,

0 commit comments

Comments
 (0)