How to Create a Js File
- Launch “Notepad.”
- Click “File,” “Save” and the “Save As” dialog box is displayed.
- Type “myfile.js” and click the “Save” button. Now you have created a .js file. By adding,
Step 1 – Open text file blank page in your Notepad (plan text editor). Type program including the top and bottom ” HTML” tags and save as a text file. Name file ” FirstProgram ” Note where or what folder file is being saved in, so that you can find it later. This is something you should always do when you save a file.
You can place any number of scripts in an HTML document. Scripts can be placed in the , or in the section of an HTML page, or in both.
You need a browser and text editor. I use Firefox for browser and Notepad++ as a text editor. Instead alert you can use document.