M2: Discuss how a scripting language can improve functionality

 

Scripting languages like JavaScript and Python can improve
the functionality of a website. This is because it can make it easier for the
website to be used and improve the design and layout of a website. In this
essay, I will discuss some of the reasons in which a scripting language can
improve the functionality of a website.

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

 

Browser Detection

The first way in which scripting languages can improve
functionality is browser detection. Browser detection is when JavaScript and
Python will be able to detect what browser the user is using. Depending on the
browser the user is using, they will be given specific features. For example if
the user is on a website on Google Chrome, they are allowed to access videos on
YouTube while on Firefox, the user can’t access videos on YouTube.  

 

The first way in which scripting languages help websites to
function better is that they are compatible with the four most popular web
browsers. Google Chrome is the most popular web browser. As scripting languages
is compatible on Google Chrome, it means that if a website uses JavaScript, it
will be able to be read on Google Chrome. Another advantage of browser
detection is that most web browsers have good security. This security can then
be used to prevent hackers and malware from getting into a computer system. The
web browser with the best security is Google Chrome. This is because Google
Chrome has an update every 15 days. This means that when an update occurs. As
Google is updated regularly, this means that it will be able to look for any vulnerabilities
and correct them. Browser detection improves the functionality of a website.
This is because it makes sure that the website is able to be used by the user.
Browser detection can improve the functionality of a website. This is be

 

User Validation

The second way in which scripting languages help websites to
function better is user validation. User validation is when the user is typing
in some data and the website makes sure that information is correct. User
validation would be useful for websites like Outlook and Gmail for someone to
make an account. For example, if someone had made a mistake while writing down
their date of birth, user validation will correct the user. A message may then
pop up and it will say something like “your date of birth is incorrect”. This
means that the user will know that the information is incorrect so they will be
able to correct themselves. This will improve the functionality of a website.
This is because of that if user validation did not exist, most of the
information that user’s sent would be incorrect. This could be a lot of data
for the company and they would have to tell the user through email or letter
that the information they have typed in is wrong and they have to type it in
again. This could then breach one of the rules of the data protection act which
is that data entered into a computer system must be correct.

 

 

 

Form Handling

The next way to improve functionality of a website by using
scripting languages is form handling. Form handling is when the user is signing
a form so they can became a member of a specific website. Companies like EBay and
Amazon may use form handling. This is so you can sign into the website if you
want to create an account. For example, if you are creating an account on
Amazon, you may have to typed your name in wrong. In the form, a reset box may
be available. This will then delete all of the information in the form. Someone
might use this if most of the information in the form is incorrect. Another
thing that form handling can do is it can add up calculations. The last thing that
Forms on webpages can do is work out calculations in real time. This could
really help users if they were filling in an online form. For example, the user
is having a Christmas dinner and the online form includes buying the turkeys
and the pigs in blankets. Each time the user adds or deletes one item, it will
say at the bottom of the page how much the meal will cost altogether. Form
handling can help to improve the functionality of a website.

 

Client-side Calculations

Another way in which a scripting language can improve the
functionality of a website is through client side calculations. Client side
calculations would be used a lot in E-commerce websites. For example,
JavaScript could be used in an E-commerce website to calculate it each time the
user buys item. Client-side calculations also delete any calculations if the
user decides that he doesn’t want to buy an item anymore. This can improve the
functionality of a website. This is due to that it makes it easier to add up
calculations and so the user will know how much each of their items will cost
in real time.

 

Web Analytics

The fifth way in which a scripting language can improve the
functionality of a website is web analytics. A web analytic is the study of the
influence of a website on its users. E-commerce websites and established
companies may use web analytics. Example of companies which may use web analytics
are Amazon and EBay. The web analytics will be used to measure the specific
software. Examples of web analytics might be how many different users visit the
site every week, how many of those users had visited the website for the first
time and how long each user stayed on the website for. Web analytics could help
a company in several ways. One of these reasons is that it could be used to
suggest if a website page is working or not. If a website page is hardly
getting any views, this data could suggest to the user that that page is not
working correctly. This will then prompt the website creator to get that page to
work accurately. The subsequent way in how web analytics can be used is that

 

 

 

 

 

Maintaining Cookies

A cookie is a small patch of data stored on your computer.
It will remember important pieces of data. For example, your username or
password if you have an account on a specific website. Cookies will then make
it easier for you to use the websites. Cookies also remember different parts of
information. For example, if you are using a website for the first time, it may
ask you to choose the language you want the website to be in. If you only talk
Spanish, you will choose the Spanish option. The next time you use the website,
this website will be in Spanish. This could also be used if you are colour
blind to red. If you are colour blind to red, you may make the website be in a
different colour so it will be easier for you to read the information on the
website. Maintaining cookies improves the functionality of a website. This is
because it makes the website be accessible to all users. This is because if
they have changed the background colour of the website to yellow before, the
background colour will be yellow whenever the user is using that specific website.
This also makes it quicker as time won’t be wasted for the user to choose what
background colour they want the website to be in every time they go on the
website.

 

 

 

 

Redirecting the user

The last feature of a scripting language which will improve
the functionality of a website is that the user can be redirected. Redirecting
the user is when the user is on a website and they want to go on a website or a
new webpage. A hyperlink will pop us where they will click on the new website
or webpage. Big companies like Amazon and Netflix will likely do this lots of
times. This is because they will have a different website for each company that
their website is used in. For example, www.Netflix.co.uk
and www.Netfilix.com. If a user lives in
the USA and they are using the British website for Netflix, a hyperlink might
pop up. It will say that they are using the wrong website and it will take them
to the new website. The user may also be redirected if a website is only
compatible with a certain browser. For example, If Amazon is only compatible on
Firefox and the user is on Google Chrome, the user will be taken to Firefox.
This means that the user will be able to use the website. Redirecting the user
will improve the functionality of a website. This is because it will improve
the overall experience of a website. This is due to that if redirecting the
user did not exist, the last reason in which the user may be directed is if a business
has a new website. If the user is using the old website, it will say to the
user that they are using the old website and they need to use the new website.
They then click on the hyperlink which takes them to the new website.
Redirecting the user will improve the functionality of a website. This is
because it will make it easier for the user to access the new website.

x

Hi!
I'm Eleanor!

Would you like to get a custom essay? How about receiving a customized one?

Check it out