How to Open JS

Techwalla may earn compensation through affiliate links in this story.
Image Credit: Ciaran Griffin/Lifesize/Getty Images

A file ending with the extension ".js" can be one of two things: a JavaScript document or a Microsoft JScript document. Since both programming languages have the same extension, Windows will get confused if you try to double-click the file; Windows will try to run the script, thinking it's a JScript document. You can get around this irritation easily.


Step 1

Open "My Computer" by double-clicking the link on your desktop.

Video of the Day

Step 2

Navigate to the directory that contains the JS file.

Step 3

Right-click the file and select "Open With" and "Notepad." This will open Notepad with your JS file loaded. Since JS files are always written in plain text, Notepad is a suitable editor for the file. When you're finished editing, go to "File" and "Save" to save the file.