Application of JavaScript :
- JavaScript gives HTML designers a universal programming tool - HTML autors are normally not programmers, but JavaScript is a scripting language with a very simple synta making it easy for HTML web pages designers even with very little knowledge of programming to incorporate short codes of JavaScript referred to as "snippets" of code into their HTML pages.
- JavaScript can put dynamic text into an HTML page - A JavaScript statement like this : document.write("<h1>" + name + "</h1>) can write a variable text into an HTML page.
- JavaScript can react to events - A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element.
- JavaScript can read and write HTML elements - A JavaScript can read and change the content of an HTML element.
- JavaScript can be used to validate data - A JavaScript can be used to validate from data before it is submitted to a server, this will save the server from extra Processing.
Client Side Scripting :
Scripts that are written to run on the web-site visitor's or user's computer and browser are known as client side scripts. The word 'client' refers to the web-site visitor's or user's computer and browser. The user's computer (client) on the can respond immediately to the user's key presses, mouse movements and clicks.
Client side scripts are not all special effects however; some can be functional, providing a way to check from input for validity before sending the data to the server. Most web page effects are usually done with scripts written to run in the client.
Though Proper execution of a client side scripts depends upon the browser type and version, the same is not considered as a big problem since JavaScript is compatible with all browsers, and also the most common features of JavaScript are supported even by older version of standard Web Browser.
Server Side Scripting :
JavaScript is also supported by most Web servers that incorporate Server Side Scripting such as ASP, ASP.net, PHP, JSP etc. In the Server Side Scripting, the server executes the script and the output generated by the server as a result of this execution (generally plain HTML) is sent down or downloaded by the client.
No comments:
Post a Comment
If you have any doubts regarding this please comment or email us.