-
-
Save igorpronin/6be3106fb1fa3848ae26 to your computer and use it in GitHub Desktop.
Следить за событиями на странице
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// набирать в консоли | |
// запуск функции | |
monitorEvents(document.body); // Следить за всеми событиями | |
monitorEvents(document.body, "mouse"); // Следить за событиями мыши | |
monitorEvents(document.body, "key"); // Следить за событиями клавиатуры | |
monitorEvents(document.body, "touch"); // Следить за событиями прикосновений к экрану | |
monitorEvents(document.body, "control"); // Следить за событиями resize, scroll, select и пр. | |
// остановка функции | |
unmonitorEvents(document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment