mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
9c9d3f0904
This patch begins integrating LibJS into LibWeb. Document holds the JS::Interpreter for now, and it is created on demand when you first call Document::interpreter(). We also add a simple "alert()" function to the global object.
11 lines
137 B
HTML
11 lines
137 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
alert("Hello friends!");
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|