Skip to content

Commit 6c6a7b5

Browse files
authored
Merge pull request #2163 from Anurag-Chauhan-289/master
improved doc
2 parents ea8fc1a + 1d13d11 commit 6c6a7b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
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,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Modern JavaScript Tutorial
22

3-
This repository hosts the English content of the Modern JavaScript Tutorial, published at [https://javascript.info](https://javascript.info).
3+
This repository hosts the English content of the Modern JavaScript Tutorial, published in [https://javascript.info](https://javascript.info).
44

55
## Translations
66

0 commit comments

Comments
 (0)