Common Javascript Errors

When you first try to run a Javascript on your web page it is quite likely that it wont work the way that it is supposed to. You may get an error message that gives you a clue as to what happens or the script may just not appear to do anything.

...more


Javascript 101

Perhaps you are just looking for information on where to get pre-built Javascripts to use on your site. Alternatively, you may want to learn how to write your own javascripts. In either case the two things that you most definitely need are a web editor and one (or more) browsers.

...more

 

 

 

What is Javascript?

What exactly is Javascript?: Javascript is a programming language that is used to make web pages interactive. It runs on your visitor's computer and so does not require constant downloads from your web site.

Are Javascript and Java the same?: No, they are two completely different computer languages. Only their names are similar.

What do I need to run Javascript?: Javascript support is built right into web browsers. Provided that the visitors to your site are using web browsers that support Javascript (most do) and have Javascript enabled (it is by default) then your Javascript will run.

Do I need to learn Javascript to be able to use it?: No. There are plenty of Javascripts that have already been written that people have made available for you to plug straight into your web page. All you need to know to be able to use such scripts is how to paste the supplied code into the required places in your web page.

What do I need to write Javascript?: Javascript is an interpreted language and so no special program is required to be able to create usable code. Any plain text editor such as Notepad is quite satisfactory for being able to write Javascript. That said, an editor which colourizes the code to make it easier to see what is what makes it easier to find your mistakes but then my Javascript Formatter can reformat your script to make errors even easier to spot.

Can I use HTML instead of Javascript?: No. HTML and Javascript are two completely different things. HTML is a markup language designed for defining static web page content. Javascript is a programming language designed for performing dynamic tasks.

Can I use PHP or some other server side language instead of Javascript?: Perhaps, it depends on where the code needs to run. If it can run before the page loads you can use a server side language. If it has to run after the page has loaded then you must use Javascript as this is the only scripting language supported by all web browsers that support client side scripting.

Most mobile phones are equipped with to got use and have a java softwares that would make it possible to take a picture of a document and fax or send it to someone using the same phone. I don't have a faxing because I rarely need it but I miss it dearly whenever I need it.

Does the Javascript go in the same file as the HTML?: It can but your scripts will be more easily reused on multiple pages of your site if you place them in separate files (using a .js extension helps identify them as Javascript). You then just link the Javascript to your HTML by inserting a <script> tag. The same Javascript can then be added to several pages just by adding the appropriate tag into each of the pages to set up the link.To help you more with Javascript and HTML, I recommend you to buy a new laptop from best laptopz -

 

Data Entry India- SEO Services Provider-web hosting-seo techniques and tips-Nail Tech Classes
© Copyright 2006, databinary.com