Files with the suffix JS contain JavaScript or JScript source code. JScript is the JavaScript variant of Microsoft.
JavaScript, not to be confused with JAVA is a programming language specially adapted to the needs of web programmers. The scripts written in it are processed by the browser and allow a website to be changed dynamically. This does not happen on the web server, but in the browser of the user. Therefore, there is some security risk with JS files.
However, JavaScript is very common and many modern offers, often referred to as WEB 2.0, do not work without JavaScript processing.
The JS file contains the source code, but it does not have to be pure JavaScript. It can also be based on one of the numerous JavaScript libraries, such as Mootools or jQuery. Even AJAX applications like Google Maps use JavaScript.
To edit a JavaScript file, a simple text editor is sufficient, but a special editor is preferable. This recognizes the language elements, presents them color coded and structured.
Any browser can execute JavaScript, but the results are quite different.
Most often resolving problems with opening JS files is very simple. Just install an appropriate program that supports such files. All of the listed programs support JS files, but may vary in offered function and purpose. Some programs may be capable only of viewing contents of JS files or offer file conversion options, but may not be capable of editing such files.
It is possible that although a compatible program has been installed on user’s system, it is not used by the system to open it. This may happen because no default application was associated with this type of files. To associate JS files with given application, select "Open with" from drop-down menu (accessed by right-clicking on the file). Then select from the list the program or application you want to be used to open this type of file. If the Adobe Dreamweaver applications is not on the list, select "Browse" option in order to manually locate the directory where Adobe Dreamweaver has been installed.
Sometimes problems with opening JS files may not lie with the application itself, but can arise due to other causes, such as: