This article will show you how to use Javascript on your website. Notepad will be used to edit HTML code.
Steps

Step 1. Open Notepad
To do this, press Windows + R and then type notepad and press Enter. Or click Start> Accessories> Notepad.

Step 2. Enter the following lines (as shown in the picture)

Step 3. After the tag, enter a string
… If you want the script to run automatically when the site loads, do not use the function. Otherwise, use the function. In our example, we will notify the user.
alert ("Hello and welcome.")

Step 4. Use the function

Step 5. Save the text document as.html to convert it to a web page
Double click on the icon to load the page and an alert window will appear.