blob: bcb145c309901ce49369ae539fc338f1efb35656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<script>
addEventListener("load", () => {
const textarea = document.querySelector("textarea");
textarea.addEventListener("focus", () => {
textarea.select();
textarea.parentElement.setAttribute("hidden", "hidden");
setTimeout(() => document.documentElement.removeAttribute("class"), 0);
});
textarea.focus();
});
</script>
<div><textarea>abc</textarea></div>
</html>
|