Correct mis-use of "it's"
This commit is contained in:
parent
ac7daa516f
commit
6af9a2e2a4
14 changed files with 29 additions and 29 deletions
|
@ -87,7 +87,7 @@ Settings for `params`:
|
|||
|
||||
There is also a number of less supported browser-specific features, which are usually not used. Check <a href="https://developer.mozilla.org/en/DOM/window.open">window.open in MDN</a> for examples.
|
||||
|
||||
## Example: a minimalistic window
|
||||
## Example: a minimalistic window
|
||||
|
||||
Let's open a window with minimal set of features, just to see which of them browser allows to disable:
|
||||
|
||||
|
@ -120,7 +120,7 @@ Rules for omitted settings:
|
|||
|
||||
## Accessing popup from window
|
||||
|
||||
The `open` call returns a reference to the new window. It can be used to manipulate it's properties, change location and even more.
|
||||
The `open` call returns a reference to the new window. It can be used to manipulate its properties, change location and even more.
|
||||
|
||||
In this example, we generate popup content from JavaScript:
|
||||
|
||||
|
@ -239,7 +239,7 @@ There's also `window.onscroll` event.
|
|||
|
||||
Theoretically, there are `window.focus()` and `window.blur()` methods to focus/unfocus on a window. And there are also `focus/blur` events that allow to catch the moment when the visitor focuses on a window and switches elsewhere.
|
||||
|
||||
Although, in practice they are severely limited, because in the past evil pages abused them.
|
||||
Although, in practice they are severely limited, because in the past evil pages abused them.
|
||||
|
||||
For instance, look at this code:
|
||||
|
||||
|
@ -257,10 +257,10 @@ Still, there are some use cases when such calls do work and can be useful.
|
|||
|
||||
For instance:
|
||||
|
||||
- When we open a popup, it's might be a good idea to run a `newWindow.focus()` on it. Just in case, for some OS/browser combinations it ensures that the user is in the new window now.
|
||||
- When we open a popup, it might be a good idea to run `newWindow.focus()` on it. Just in case, for some OS/browser combinations it ensures that the user is in the new window now.
|
||||
- If we want to track when a visitor actually uses our web-app, we can track `window.onfocus/onblur`. That allows us to suspend/resume in-page activities, animations etc. But please note that the `blur` event means that the visitor switched out from the window, but they still may observe it. The window is in the background, but still may be visible.
|
||||
|
||||
## Summary
|
||||
## Summary
|
||||
|
||||
Popup windows are used rarely, as there are alternatives: loading and displaying information in-page, or in iframe.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue