Poll: Was this article helpful for you?
You do not have permission to vote in this poll.
Yes
100.00%
1 100.00%
No
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exercise 0001 - Hello World in JavaScript within a HTML document
#1
In order to write content in HTML documents we will need the document.write() function.

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>
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Messages In This Thread
Exercise 0001 - Hello World in JavaScript within a HTML document - by Qomplainerz - 04-10-2022, 07:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exercise 0003 - Variables Qomplainerz 0 844 04-10-2022, 09:42 AM
Last Post: Qomplainerz
  Exercise 0002 - Hello World in JavaScript in the browser console Qomplainerz 0 955 04-10-2022, 07:45 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 7 Guest(s)