What Is Scripting :-
A script is a small peace of program that can be interactive to the website is called scripting. The scripting language is simple with which you can write scripts. And it can be generate is a pop-up alert box message, or provide dropdown menu.
JavaScript, JScript, Perl, PHP, Python, & VBScript are the most popular examples of Scripting language.
JavaScript, JScript, Perl, PHP, Python, & VBScript are the most popular examples of Scripting language.
Types Of Scripting Language :-
Client-Slide Scripting :-
In the client side scripting the environment used to run script is a browser. The processing takes places on the end of users computer. The source code is transferred from the web server to the user's computer over the internet and run directly in the browser.
Server-Side Scripting :-
In the server-side scripting the environment is used to runs a script is a web server. The server is where the web page and other content lives. The server send pages to the user/ client on request.
Advantages Of Client-Side Scripting :-
- Allow for more interactivity by immediately responding to user's action.
- Execute quickly because they don't require a trip to the server.
- May improve the usability of web sites for users whose browsers support scripts.
- It is reusable.
Advantages Of Server-Side Scripting :-
- More secure than client-side scripting.
- Faster as it runs on server which is highly configured machine.
Different Between Client Side Scripting And Server Side Scripting :-
Parameter |
Client-Side
Scripting |
Server-Side
Scripting |
Environment |
In the
client side scripting the environment used to run script is a browser. |
In the
server-side scripting the environment is used to runs a script is a web
server. |
Security |
Less Secure |
More Secure |
Purpose |
The
purpose manages
the presentation and user interaction aspects of a website. |
The
purpose manages
the backend logic of a website. |
Language |
Languages
is used to JavaScript, HTML, CSS, Etc. |
Languages
is used to PHP, Python, Java, ASP.NET, Node.js, Etc. |
Primary Purpose |
User
interface and interaction |
Backend
logic and data processing |
Execution Location |
User's
device |
Web
server |