зеркало из https://github.com/mozilla/pjs.git
12 строки
202 B
HTML
12 строки
202 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
<input value="foo">
|
||
|
<script>
|
||
|
var i = document.querySelector("input");
|
||
|
i.selectionStart = 1;
|
||
|
i.selectionEnd = 2;
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|