Executing JavaScript .JS file

About JavaScript:

  • is a Server side scripting language (as similar to php)
  • files are saved with .js extension (which is )
  • is a Sun MicroSystems (and later Oracles) and NetScape team developed system
  • Microsoft’s developed compatible version is called JScript

 

Executing JavaScript:

  • You a browser to execute the JavaScript code
  • That is, you can NOT directly execute a JavaScript .js file instead you need to embed it in HTA/HTML pages.
  • In a browser, you can run a JavaScript Onliners in the address bars
    • example: JavaScript: alert("it ran in browser address bar");

    Leave a Reply

    Your email address will not be published. Required fields are marked *