Selasa, 11 Oktober 2011

Use JavaScript and Make Your Web Pages Interactive



In the beginning of 1990s, the World Wide Web took over the world. You could view millions of pages, read information shared, but that was it. You could not do anything else. The websites at that time were static and lacked interactivity. This led to the creation of a programming language that could instruct the page how to respond to user's actions. The programming language was first developed by Netscape Navigator.
They named it LiveScript. Now anyone could interact with the website if they had the latest Netscape browser. LiveScript didn't require plug-in to enable commands to run, the browse would interpret it on its own. Later another language was developed known as Java; this language required a separate plug-in. During this time, Internet Explorer decided to integrate two languages. One was based on the BASIC programming language and the other was similar to JavaScript. This led to a competition between browser developers. Hence in 1996 JavaScript was given to an international standards body called ECMA (European Computer Manufacturers Association). Soon JavaScript became the accepted standard for writing interactive processing.
What is JavaScript?
JavaScript is a scripting language which is a lightweight programming language. It can be directly embedded into HTML pages without preliminary compilation. It lets you build interactions between page content, the browser's state and the actions of the reader. It makes web pages interactive for you. By using JavaScript you can interact with your readers and respond to their actions accordingly.
Learning JavaScript
Not all programming languages are complex to learn. At least, learning JavaScript is not a daunting task. The level of difficulty that you come across while learning the language will depend upon your existing knowledge. You just need to learn a few basic concepts and take benefit from existing JavaScript scripts for your needs.
JavaScript runs in a variety of ways. However, prior to learning JavaScript you will have need to have some familiarity with HTML.
How JavaScript Works
A series of actions that are to be performed must be defined in a programming language. JavaScript has to define individual actions which guide the browser what must be done. Some examples of individual actions are copying something from one place to another, calculating something etc.
The more you learn the language, the easier it is going to become for you to use it appropriately.
Advantages of Using JavaScript
As mentioned earlier, the number one advantage of JavaScript is to provide interactivity to static web pages. Broadly, JavaScript can do the following for you:
- Provide visual feedback to a reader action.
- Add a little explanatory text in the status bar when the reader moves the mouse in certain places.
- Change the graphics on the screen as the reader moves the mouse around the browser.
- Display information based on the time of day.
JavaScript has some analytical abilities as well. It analyzes which browser the reader uses and then displays the correct version of the page for the browser type. It is invisible yet has the ability to perform some of the most critical functions. JavaScript may initially appear complex to Web Developers, but it is one of the most useful programming languages. Once you learn the language, you can write scripts much quicker than the time required by other languages.
Published At: Isnare.com

Tidak ada komentar:

Posting Komentar