Skip to content

Commit fbc53fb

Browse files
authored
Update article.md
1 parent 2cb4c9b commit fbc53fb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Popups and window methods
1+
# Pop-uplar və window üsulları
22

3-
A popup window is one of the oldest methods to show additional document to user.
3+
Pop-up istifadəçiyə əlavə document göstərmək üçün ən köhnə üsullardan biridir.
44

5-
Basically, you just run:
5+
Təməl olaraq, siz sadəcə çalışdırın::
66
```js
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+
...Və verilmiş URL ilə yeni bir pəncərə açacaq. Müasir brauzerlərin əksəriyyəti ayrı pəncərələr əvəzinə yeni tablar açmaq üçün konfiqurasiya edilmişdir.
1111

12-
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.
12+
Popuplar həqiqətən çox qədim zamanlardan qalmadır.. İlkin ideya əsas pəncərəni bağlamadan başqa məzmunu göstərmək idi. Hal-hazırda, bunun başqa yolları var: biz məzmunu [fetch](info:fetch) ilə dinamik olaraq yükləyə və onu dinamik şəkildə yaradılan `<div>`-də göstərə bilərik. Beləliklə, pop-uplar hər gün istifadə etdiyimiz bir şey deyil.
1313

14-
Also, popups are tricky on mobile devices, that don't show multiple windows simultaneously.
14+
Həmçinin, pop-uplar eyni vaxtda birdən çox pəncərəni göstərməyən mobil cihazlarda aldadıcılıq edir.
1515

16-
Still, there are tasks where popups are still used, e.g. for OAuth authorization (login with Google/Facebook/...), because:
16+
Yenə də pop-upların hələ də istifadə olunduğu vəzifələr var, məsələn. OAuth icazəsi üçün (login with Google/Facebook/...), çünki:
1717

18-
1. A popup is a separate window with its own independent JavaScript environment. So opening a popup with a third-party non-trusted site is safe.
19-
2. It's very easy to open a popup.
20-
3. A popup can navigate (change URL) and send messages to the opener window.
18+
1. Açılan pəncərə öz müstəqil JavaScript mühiti olan ayrıca pəncərədir. Beləliklə, üçüncü tərəfin etibarlı olmayan saytı ilə pop-up açmaq təhlükəsizdir.
19+
2. Pop-up açmaq çox asandır.
20+
3. Bir pop-up gəzəbilər (URL'yi dəyişdirmək) ve açıcı pəncərəyə mesaj göndərəbilər.
2121

2222
## Popup blocking
2323

0 commit comments

Comments
 (0)