Welcome to WebmasterWorld Guest from 54.198.179.85

Forum Moderators: open

Message Too Old, No Replies

what is javascript?

     
8:44 am on Nov 27, 2010 (gmt 0)

New User

5+ Year Member

joined:Nov 26, 2010
posts:11
votes: 0


does every website require it?
9:21 pm on Nov 27, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts: 4392
votes: 0


no
4:00 am on Nov 28, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3159
votes: 15


(X)HTML is essentially a noun language.

CSS is essentially an adjective language.

JavaScript is essentially a verb language.

--------

(X)HTML: This is an image, a paragraph, a header, etc.

CSS: This image has no border, this paragraph is colored red, this header is the size the paragraph text should be, etc.

JavaScript: When the user moves the mouse over the image resize it to make it appear larger, when the user loads the page fade in a promotion, when the user does X execute Y to achieve Z.

--------

(X)HTML is 100% necessary for any web goal.

CSS is necessary if you can't replace Craig's List doing the exact same thing.

JavaScript is necessary for user interaction beyond hover/rollover effects.

- John
2:55 pm on Nov 29, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 1, 2010
posts:95
votes: 0


It is not "required" but it is very handy in many situations. The HTML normally contains the page elements. The CSS positions them. Javascript is a scripting language which allows you to modify the contents of the HTML/CSS page dynamically. For example, if you want to create a slideshow of images that fade in and out, you may place the first image in the page using HTML and CSS, then use javascript to detect that the inital page has finished loading and when ready will then perform the slideshow by fading out the first image, swapping it for the next image and then fading that one in...ad infinitum until the show is over. This is just one example of how "fixed" HTML code can be modified after it has been rendered in the visitor's browser. Worth learning if you are new to web development. A search for "learning javascript" will provide a wealth of resource. Good luck.