what can JavaScript do?

Posted by tagicon_admin | July 29, 2015 | in : JavaScript

In this post I will show some example of what can JavaScript do? in an html page.

JavaScript is the most popular and easy language in the world. Some language are interpreted and some are compiled. JavaScript is an interpreted language. it is one of three languages that web developers must know in web development to dynamic the page content.

  1. HTML
  2. CSS
  3. JavaScript

Some advantage of JavaScript:

  • Less server interaction: because it’s run on client pc.
  • Immediate feedback: because of client side scripting language, you don’t have to wait for page reload. Which mean less load on server.
  • Use in offline: its run on web users computers — even when they are offline!
  • Javascript can run when the user needed or if the user needed and without load the full page.

JavaScript can change HTML content dynamically

Copy the code below in a text editor and save the file in a .html format and see the output.

Change background color by JavaScript

Copy the code below in a text editor and save the file in a .html format and see the output.

Change HTML style by JavaScript

Copy the code below in a text editor and save the file in a .html format and see the output.

 

Related Posts

Leave a Reply