Home » Guides Beginner Article

A Few Secrets You Need to Know about Client-Side Scripting

4.0/5.0 (1 votes total)
Rate:

Jim Corkern
March 19, 2007


Jim Corkern
Are you struggling to attain top rankings in Google, Yahoo and MSN? Get your free SEO E-Book at Top SEO and Web Design specialist Jim Corkern and Kyle Newton s websites. They offer this book to stop the insanity and misinformation and put you on the path to top search engine positions.
Jim Corkern has written 1 articles for JavaScriptSearch.
View all articles by Jim Corkern...

Client-side Scripting

Web page developers have traditionally used HTML language to create web pages. HTML creates static documents that do not allow the user to interact with them in any significant way. In this static HTML model, the web server stores existing documents or dynamically creates documents and the client machine simply displays it i.e. the contents of the HTML file are loaded in a linear fashion because the standard HTML file has no built-in capability to respond to any changing conditions such as the time of day or the user response to a question etc.

Scripting language provides another way to activate the web pages. Script can respond to many different events, for example, it can record a user's progress through an online tutorial, store this information in a file on the user's disk and then resume from the same point the next time the user visits the site. Script also enables display of particular pages based on the time of the day, week,holiday or special event. Depending on the programming skill and creativity .every web page you design can be an interactive adventure that changes every time it is viewed.

To enhance the functionality of the Web page using scripting, add the source code to the HTML page in specially-demarcated sections. When a Web Browser encounters a script ,it calls a scripting interpreter, which parses and executes the scripting code. Since scripting code is not compiled and encrypted in the HTML page, so anyone can view or copy your script by viewing your HTML source code. The user browser must support the scripting language, and it must be able to integrate scripting with the controls embedded in the HTML document.

JavaScript is a simplified, limited version of a full programming language as it offers a subset of the features of a full language specification and this simplicity usually makes it easier to understand. Syntax is the manner in which the message are constructed using the native language terms that tend to be simpler, allowing someone to master the construction technique more rapidly and to avoid stringing expressions that will cause disastrous failures when the program or script is run.

JavaScript is an object based scripting language that offers cross platform operation across the span of the www. JavaScript provides a means of embedding interactive paths and intelligence within HTML documents. The object based nature of JavaScript offers programmers significant power and flexibility through the ability to create functions and new objects. Performing certain processing functions at the client side - such as forms validation and data retrieval from local data arrays - reduces the burden imposed on the server side and can provide a sense of greater responsiveness to a user viewing an HTML document enhanced with JavaScript.


Add commentAdd comment (Comments: 0)  

Advertisement

Partners

Related Resources

Other Resources

arrow