We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

what exactly does javascript do?

Thread ID:





141157 Nov 27,2018 01:38 PM UTC Nov 28,2018 06:56 AM UTC JavaScript - EJ 2 1
Tags: Accordion
Ramesh salvi
Asked On November 27, 2018 01:38 PM UTC

I'm learning javascript and a little confused as to what javascript does that html and css don't do. I know people say it adds functionality but what does that mean exactly?

Deepa Loganathan [Syncfusion]
Replied On November 28, 2018 06:56 AM UTC

Hi Ramesh,  
Thanks for contacting Syncfusion support.  

In short, CSS is a design language that lets you format the appearance and layout of each HTML elements of your webpage by modifying its properties. Whereas, JavaScript is language that lets you control the behavior of elements with respect to user interaction to provide dynamic web pages.
In detail,  
Javascript can do more when compared to CSS. While CSS is meant for deciding the presentation, layout and formatting of your webpage, Javascript can do the following. 
1.      Determine how the element should behave for each user interaction like browser resizing, click, tap, mouse wheel, key press 
2.      Add client side validation in form submit action 
3.      Read an change the content of the HTML 
4.      Alter the behavior of HTML elements with respect to user interaction at run time. 
Deepa L. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon