mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 04:21:54 +00:00
24 lines
553 B
HTML
24 lines
553 B
HTML
<!DOCTYPE html>
|
|
<input id=input type=text>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let input = document.getElementById("input");
|
|
|
|
input.addEventListener("focus", () => {
|
|
println("focus");
|
|
});
|
|
|
|
input.addEventListener("blur", () => {
|
|
println("blur");
|
|
});
|
|
|
|
input.focus();
|
|
|
|
const rect = input.getBoundingClientRect();
|
|
const x = rect.x + rect.width;
|
|
const y = rect.y + rect.height;
|
|
|
|
internals.click(x + 10, y + 10);
|
|
})
|
|
</script>
|