fune/remote/cdp/test/browser/runtime/doc_console_events.html

18 lines
424 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Empty page</title>
<script>
function throwError() {
let foo = {};
foo.click();
}
</script>
</head>
<body>
<a id="console-log" href="javascript:console.log('foo')">console.log()</a><br/>
<a id="console-error" href="javascript:console.error('foo')">console.error()</a><br/>
<a id="js-error" onclick="throwError()">Javascript Error</a><br/>
</body>
</html>