summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-event-handler.html
blob: 928f4ef74cf66ae403274a58c1fc8713f6dc7890 (plain)
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<meta charset=UTF-8>
<script>
function synthesizeClick() {
const elem = document.getElementById("clicky");
const event = new MouseEvent("click", {});
elem.dispatchEvent(event);
}
</script>
<span onclick="debugger" id="clicky">click me</span>