blob: 816ef2d7bc6c22228feb1503aac07b0cf237fd08 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
</head>
<body>
<p id="description">Focus field with a placeholder, then type, then clear the value.</p>
<div>
<textarea id=i1 placeholder="Placeholder">Text</textarea>
<script>
var i1 = document.getElementById('i1');
i1.focus();
document.execCommand("InsertText", false, "Text");
i1.value = "";
</script>
</body>
</html>