You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note: immediately after `window.open`, the new window isn't loaded yet. That's demonstrated by `alert` in line `(*)`. So we wait for`onload`to modify it. We could also use `DOMContentLoaded` handler for `newWin.document`.
129
+
لطفا توجه داشته باشید: بلافاصله بعد از `window.open` پنجرهی جدید هنوز load نشده است. آن، در خط `(*)` با `alert` نشان داده میشود. پس صبر میکنیم تا`onload`آن را اصلاح کند. همچنین برای `newWin.document` میتوانیم از `DOMContentLoaded` handler استفاده کنیم.
130
130
131
-
```warn header="Same origin policy"
132
-
Windows may freely access content of each other only if they come from the same origin (the same protocol://domain:port).
131
+
```warn header="سیاست مبدا یکسان"
132
+
.میتوانند به صورت آزادانه به محتوای یکدیگر دسترسی داشته باشند (همان پروتکل://domain:port) پنجرهها فقط در صورتی که از یک مبدا باشند
133
133
134
-
Otherwise, e.g. if the main window is from `site.com`, and the popup from `gmail.com`, that's impossible for user safety reasons. For the details, see chapter <info:cross-window-communication>.
134
+
.را ببینید <info:cross-window-communication> این برای دلایل امنیتی غیرممکن است. برای جزئیات، بخش `gmail.com` از popup باشد و `site.com` در غیر این صورت، برای مثال اگر پنجرهی اصلی از
0 commit comments