Thursday, August 26, 2010

Introduction to JavaScript Errors

At one time or another, it is likely that all Internet users have been confronted with a JavaScript error. While what happens depends on the browser being used and the type of error, what JavaScript errors tell you is that a script on the web page that is being viewed either contains an error or not running properly, but what does this mean?

What is JavaScript?

JavaScript is a type of scripting language used to code the elements of web pages and web sites. There are a number of different scripting languages in use, including HTML, which is the most basic, but JavaScript is one of the most popular languages used for coding advanced web sites. JavaScript is referred to as a client side language, which means that it runs on the client’s browser and not on the server where the web page is stored. In other words, everything that happens due to JavaScript coding happens on your computer.

What Causes JavaScript Errors?

One of the simplest answers to why JavaScript errors occur is because it is a client side language, which in turn means that there is greater scope for things to go wrong when a web page is attempting to load and run. Web pages that are coded using JavaScript are compiled on the Internet browser on the user’s computer. As web sites become more and more advanced, the additional features can make them slower to load and even cause them to stop running altogether. It is when this happens that JavaScript errors begin to appear.

No comments:

Post a Comment