repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
Source
/
web
/
tests
/
data
/
ime-on-focus-on-user-gesture.html
blob
a32c8f8d430c5855e2b4e34c4d0b7f362980f4d3
1
<!DOCTYPE
html
>
2
<div
id
=
"button"
style
=
"width: 200px; height: 200px"
></div>
3
<input
type
=
"text"
id
=
"input"
></input>
4
<script>
5
document
.
querySelector
(
"#button"
).
addEventListener
(
"click"
,
function
() {
6
document
.
querySelector
(
"#input"
).
focus
();
7
});
8
</script>