Differentiate between Client Side & Server Side Scripting

You are currently viewing Differentiate between Client Side & Server Side Scripting

Differentiate between Client Side and Server Side Scripting

Client-side scripting : Web browsers execute client-side scripting. It is used when browsers have all code. Source code is used to transfer from webserver to user’s computer over the internet and run directly on browsers. It is also used for validations and functionality for user events.
Server-side scripting : Web servers are used to execute server-side scripting. They are basically used to create dynamic pages. It can also access the file system residing at the webserver. A server-side environment that runs on a scripting language is a web server.

Differentiate between Client Side and Server Side Scripting

Client Side ScriptingServer Side Scripting
Client Side Scripting used when the users browser already have all the code.Server Side Scripting used to create dynamic pages.
The web browser executes the client side scripting.The web server executes the server side scripting.
The main purpose of this scripting is to give the requested output to the end-user.The main function of this scripting is to manipulate and grant access to the requested database.
More user interaction, as the client side script runs on the client's computer.Limited user interaction, as the server side script runs on the server.
Less secure as client-side code can be easily viewed and altered.More secure as server-side code is not accessible to the client.
Code is accessible to everyone as it is executed on the client's browser.Code is not accessible to everyone as it is executed on the server.
Response from a client-side script is faster as compared to a server-side script.Response from a server-side script is slower as compared to a client-side script.
Languages like JavaScript, CSS, HTML, etc., are very common in the case of client-side scripting.Languages like PHP, .ASP, Python, etc., come into play in the case of server-side scripting.

Leave a Reply