Skip to content

Commit b337251

Browse files
committed
documentation update
1 parent 1138a11 commit b337251

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ They have two functions:
226226
}
227227
```
228228

229-
* **Checking for unsaved user input before closing a window:**(#checking-for-unsaved-user-input-before-closing-a-window)
229+
* **Checking for unsaved user input before closing a window:**
230+
<a name="checking-for-unsaved-user-input-before-closing-a-window"></a>
230231
PEB users can enter a lot of data in local HTML forms and it is often important to safeguard this information from accidental deletion if PEB window is closed without first saving the user data. When user starts closing a PEB window, the browser checks for any unsaved data in all forms of the HTML page that is going to be closed. This is achieved using internal JavaScript code compiled in the resources of the browser binary.
231232

232233
If any unsaved data is detected, PEB tries to determine what kind of JavaScript routine has to be displayed to warn the user and ask for final confirmation. Two types of JavaScript warning routines are possible in this scenario: synchronous and asynchronous.

0 commit comments

Comments
 (0)