/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/html/test_focus.html
7 строк
243 B
Josh Matthews
Implement document focus context and hook it up to click events.
13 ноя 2014, 19:27
13 ноя 2014, 19:27
84bc17e
Код
Авторство
О чём код?
<body> <input id="focused"> <script> document.body.addEventListener('keydown', function() { alert("body"); }, false); document.getElementById('focused').addEventListener('keydown', function() { alert("input"); }, false); </script> </body>