- Computer Networking Course
- Computer Networking Tutorial
- Network Interface Unit
- Network Switch and Types
- Network Transmission Media
- Twisted Pair Cable
- Wireless Transmission Medium
- Satellite Microwave
- Data Communication Terms
- Types of Networks
- Network Topology
- Network Devices
- LAN Design
- Network Components Checklists
- Communication Protocols
- Mobile Computing
- Inter-networking Terms
- URL and Domain Names
- Web Hosting
- Web Scripting
- Software Categories
- Network Security
- Computer Programming
- Learn Python
- Python Keywords
- Python Built-in Functions
- Python Examples
- Learn C++
- C++ Examples
- Learn C
- C Examples
- Learn Java
- Java Examples
- Learn C#
- Learn Objective-C
- Web Development
- Learn HTML
- Learn CSS
- Learn SQL
- Learn PHP
Web Scripting and its Types | Client-side and Server-side Scripts
The process of creating scripts and incorporating them into a website is referred to as web scripting.
A web page may contain a script, which is defined as a list of commands. A specific piece of software, known as a scripting engine, is responsible for interpreting and carrying out the actions specified in scripts.
Scripts can be written for a number of different reasons, including automating processes on a local computer or generating web pages on the internet, to name just two examples.
Types of Scripts
There are two distinct varieties of scripts, namely:
Interaction within a web page can be enabled through the use of client-side scripting.
Downloading of the client-side scripts occurs at the client's end, after which the browser is responsible for interpreting and running the scripts.
The scripting that runs on the client side is dependent on the browser. To put that another way, the client-side browser needs to have scripting enabled before scripts can be run.
When client-side interaction is used, client-side scripting is what's needed to make it work.
Examples of possible applications for client-side scripting are as follows:
- to obtain information from the screen or browser of the user.
- Online games.
- Modifying the way pages look in the browser without having to reload the page itself; for example, rolling your mouse over a hyperlink will highlight that link without having to reload the page.
Using server-side scripting, you are able to finish or carry out a task on the server and then send the result to the client. This is a two-way process.
Because the server is the one doing all of the work in server-side scripting, it does not matter which browser is being used on the client end of the connection.
When the information is sent to a server to be processed at the server end, the scripting that runs on the server is called server-side scripting.
Examples of possible applications for server-side scripting are as follows:
- password protection
- browser customization or information transmission based on the needs of the client-side browser
- form processing
- building and displaying pages created from a data base
- dynamically editing, changing, or adding content to a web page
PHP, ASP.NET, Node.js, and Python are just a few examples of well-known server-side scripting languages.
Difference between client-side and server-side scripting language
The following table provides a comparison or explanation of the differences between scripts run on the client's side and those run on the server's side.
|Client-Side Scripting||Server-Side Scripting|
|Script code is downloaded and executed at the client end.||The script is executed at the server end, and the result is sent to the client end.|
|Response to interaction is more immediate once the program code has been downloaded.||Complex processes are more efficient as the program and associated resources are not downloaded to the browser.|
|Services are secure as they do not have access to files or databases.||Have access to files and databases, but have security considerations when sending sensitive information.|
|Browser dependent||Does not depend on browsers|
|Influenced by the user's computer's processing speed||Affected by the processing speed of the host server|
« Previous Topic Next Topic »