Let us talk about this in more detail.
Now, since it is a client-side script, it does not need a server to operate. For example, if a web page is already loaded into the web browser, but for some reason the internet goes away soon after, the user should be able to interact with the website just the same.
Obviously, you will not be able to navigate to a new page, just interact with the data already loaded on the current page.
- Dropdown menus and rollover effects
- Ability to play audio and video
- Load fresh content without having to reload the web page
- Animated page elements
- And not to mention, Autocomplete
Despite being a client-side script programming language, we must say that it does its best work when it communicates with a remote server. Basically, the script communicates with the server in the background without interrupting what the user is doing in the foreground.
You see, CSS uses <link> element to implement external stylesheets, and <style> element to add internal stylesheet. HTML is a bit different since it relies on the <script> element.
</head> tag: <script>
<script> element to
<script src="script.js" defer></script> instead.