mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-23 19:42:53 +00:00
15 lines
385 B
HTML
15 lines
385 B
HTML
<script src="../include.js"></script>
|
|
<button id="myButton"></button>
|
|
<script>
|
|
asyncTest(done => {
|
|
function handleClick(event) {
|
|
println(`Event: ${event.constructor.name}`);
|
|
done();
|
|
}
|
|
|
|
let button = document.getElementById("myButton");
|
|
|
|
button.addEventListener("click", handleClick);
|
|
button.click();
|
|
});
|
|
</script>
|