tenfourfox/devtools/client/debugger/test/mochitest/doc_event-listeners-04.html

24 lines
525 B
HTML
Raw Normal View History

2017-04-19 07:56:45 +00:00
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<button>Click me!</button>
<script type="text/javascript">
window.addEventListener("load", function onload() {
var button = document.querySelector("button");
button.onclick = function () {
debugger;
};
});
</script>
</body>
</html>