1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 02:30:30 +09:00
ladybird/Base/res/html/misc/welcome.js
davidot 4912b22e3b LibWeb+WebContent: Setup the js console client earlier
This allows us to print messages in inline scripts. Also add an example
of this in the welcome page to test this.
2022-09-21 17:34:32 +01:00

6 lines
254 B
JavaScript

document.addEventListener("DOMContentLoaded", function () {
console.log(
"Hello from DOMContentLoaded! There should be a message before this from an inline script"
);
document.getElementById("ua").innerHTML = navigator.userAgent;
});