mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
15 lines
296 B
HTML
15 lines
296 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
<input value="foo">
|
||
|
<script>
|
||
|
var i = document.querySelector("input");
|
||
|
i.selectionStart = 1;
|
||
|
i.selectionEnd = 2;
|
||
|
i.style.display = "none";
|
||
|
document.body.clientHeight;
|
||
|
i.style.display = "";
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|