gecko/dom/tests/browser/test-console-api.html

19 lines
455 B
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<title>Console API test page</title>
<script type="text/javascript">
function test() {
var str = "Test Message."
console.log(str);
console.info(str);
console.warn(str);
console.error(str);
}
</script>
</head>
<body>
<h1>Console API Test Page</h1>
<button onclick="test();">Log stuff</button>
</body>
</html>