04-10-2022, 07:43 AM
In order to write content in HTML documents we will need the document.write() function.
As usual I will take "Hello, World!" as example.
As usual I will take "Hello, World!" as example.
Quote:<!DOCTYPE HTML>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<script>
document.write("Hello, World!");
</script>
</body>
</html>