About 364,000 results
Open links in new tab
  1. What's the easiest way to run a .js javascript file on windows?

    Mar 30, 2017 · The easiest way to "run a JS File" is to create an HTML file that references the JS file and let the default browser run it. An example of a simple HTML file that would do this …

  2. How to call JavaScript (.JS) file in system startup

    Jul 1, 2015 · Create a batch file (windows) (or sh file (unix)) with something like node YOURJSFILE.js. Then you have to say to your OS to execute it at startup. Example : …

  3. javascript - How to run a function when the page is loaded?

    Should work in many legacy browsers, but test. Place your JavaScript functions or or library calls inside the "Start()" method below, so they are triggered as soon as the script says the web …

  4. ajax - starting file download with JavaScript - Stack Overflow

    Internet Explorer 8 blocks file downloading using all mentioned ways (iframe, window.location.href, or even "http-equiv=REFRESH CONTENT"). "To help protect your …

  5. How do you run JavaScript script through the Terminal?

    Dec 16, 2011 · Technically, Node.js isn't proper JavaScript as we know it, since there isn't a Document Object Model (DOM). For instance, JavaScript scripts that run in the browser will …

  6. node.js - Run JavaScript in Visual Studio Code - Stack Overflow

    Aug 3, 2015 · 1) Take VSCode 2) Right click on the file in left pane 3) Click "Reveal in explorer" from context menu 4) Right click on the file -> Select "Open with" -> Select "Choose another …

  7. How to run a hello.js file in Node.js on windows? - Stack Overflow

    save the file as hello.js preferably same location as nodejs; open command prompt navigate to the location where the nodejs is located c:\program files\nodejs; and run the command from …

  8. How to run server written in js with Node.js - Stack Overflow

    Mar 17, 2017 · But you will first need to browse in the terminal to the same folder as the file server.js. The syntax for using the terminal varies by operating system, look for its …

  9. javascript - How do I pass command line arguments to a Node.js …

    The first element of the process.argv array will always be a file system path pointing to the node executable. The second element is the name of the JavaScript file that is being executed. And …

  10. How to trigger a file download when clicking an HTML button or ...

    Jul 24, 2012 · Button 1 opened the text file in a new browser tab. However, Button 1 would download the file for file types that it couldn't open itself (for example, .apk files). Button 2 …