Some of the actions on a web page that take place client-side include the following.
Most validation rules will happen on the client-side. For example, if data is required for a form then a warning will be given to the user to type it in. The data will not be sent to the server until it has been entered.
Cookies and internet history are used to influence the advertisements and other websites recommended to users. The sites pull data from lots of different sources and link it together so that advertising can be targeted more accurately at the consumer.
Social-networking sites invite users to ‘like’ things. These ‘likes’ are stored in databases and are used, along with cookies, to track users’ interests. For example, if a person frequently ‘likes’ products or services associated with sport, or if they visit sport-related websites, they are more likely to see more sport-related adverts and updates in their feed.
This is because their ‘likes’ have been checked and their cookies have been accessed in order to find and display an appropriate advert. This is called target marketing.
A website may be programmed to automatically adjust the layout depending on the web browser or device that is being used to access the page. For example, web pages are designed to look different on a smartphone compared to a desktop. This is so that the pages fit the different screens.