Merge pull request #82 from IanWitham/patch-2
Fixed unclear syntax and gendered language
This commit is contained in:
commit
31d3057a76
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ For example:
|
|||
alert("Hello");
|
||||
```
|
||||
|
||||
The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until he deals with the window. In this case -- until he presses "OK".
|
||||
The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until they have dealt with the window. In this case -- until they press "OK".
|
||||
|
||||
## prompt
|
||||
|
||||
|
@ -40,7 +40,7 @@ It shows a modal window with a text message, an input field for the visitor and
|
|||
`default`
|
||||
: An optional second parameter, the initial value for the input field.
|
||||
|
||||
The visitor may type something in the prompt input field and press OK. Or he can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key.
|
||||
The visitor may type something in the prompt input field and press OK. Or they can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key.
|
||||
|
||||
The call to `prompt` returns the text from the field or `null` if the input was canceled.
|
||||
|
||||
|
@ -101,7 +101,7 @@ We covered 3 browser-specific functions to interact with the visitor:
|
|||
`confirm`
|
||||
: shows a message and waits the user to press "OK" or "CANCEL". It returns `true` for OK and `false` for CANCEL/`key:Esc`.
|
||||
|
||||
All these methods are modal: they pause the script execution and don't let the visitor to interact with the rest of the page until he dismisses them.
|
||||
All these methods are modal: they pause the script execution and don't allow the visitor to interact with the rest of the page until the message has been dismissed.
|
||||
|
||||
There are two limitations shared by all the methods above:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue