16 lines
327 B
HTML
16 lines
327 B
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<p id="description">Focus field with a placeholder, then type.</p>
|
|
<div>
|
|
<input id=i1 placeholder="Placeholder">
|
|
<script>
|
|
var i1 = document.getElementById('i1');
|
|
i1.focus();
|
|
document.execCommand("InsertText", false, "Text");
|
|
</script>
|
|
</body>
|
|
</html>
|