blob: dcc92eecdbe8d81d52bf33b939536b9d5c856ab5 [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 delete all text.</p>
<div>
<input id=i1 placeholder="Placeholder">
<script>
var i1 = document.getElementById('i1');
i1.focus();
document.execCommand("InsertText", false, "Text");
document.execCommand("Delete");
document.execCommand("Delete");
document.execCommand("Delete");
document.execCommand("Delete");
</script>
</body>
</html>