mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +00:00
19 lines
510 B
HTML
19 lines
510 B
HTML
<script src="../include.js"></script>
|
|
<style>
|
|
#input {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
<div id="input" contenteditable="true"></div>
|
|
<script>
|
|
test(() => {
|
|
const input = document.getElementById("input");
|
|
input.addEventListener("input", (e) => {
|
|
println(`input data=(${e.data}) intputType=(${e.inputType})`);
|
|
});
|
|
internals.sendText(input, "hello");
|
|
internals.commitText();
|
|
});
|
|
</script>
|