JavaScript

What is JavaScript?
  • By definition, JavaScript is a client-side scripting language. 
  • JavaScript was designed to add interactivity to HTML pages
  • A scripting language is a lightweight programming language
  • JavaScript is usually embedded directly into HTML pages
  • JavaScript is an easy-to-use programming language that can be embedded in the header of the HTML pages
  • JavaScript is an interpreted language (means that scripts execute without preliminary compilation)
  • Everyone can use JavaScript without purchasing a license
Uses Of JavaScript
  • JavaScript is used in billions of Web pages to add functionality, validate forms, communicate with the server, and much more.
  • It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more.
  • JavaScript can allow you to create new things on your website that are both dynamic and interactive, allowing you to do things like find out some information about a user (like monitor resolution and browser), check that forms have been filled in correctly, rotate images, make random text, do calculations and many other things.
  • Browser Detection: Detecting the browser used by a visitor at your page. Depending on the browser, another page specifically designed for that browser can then be loaded
  • Cookies: Storing information on the visitor's computer, then retrieving this information automatically next time the user visits your page. This technique is called "cookies".
  • Control Browsers: Opening pages in customized windows, where you specify if the browser's buttons, menu line, status line or whatever should be present.
  • Validate Forms: Validating inputs to fields before submitting a form. An example would be validating the entered email address to see if it has an @ in it, since if not, it's not a valid address.
Supported Browsers:

JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as 
  • Internet Explorer
  • Firefox Chrome
  • Opera and 
  • Safari

No comments:

Post a Comment