April 18, 2020

JavaScript

JavaScript: it allows you to access and dynamically Control the individual properties of both HTML and CSS. JavaScript accesses the properties of an HTML document through the DOM(Document Object Model). The work of DOM is to represent all the attributes of HTML and Style Sheets to JavaScript controlYou need to only know about the DOM that JavaScript commands it accepts. As different browsers have their slightly different versions of the DOM. so they display HTML properties differently as well as access them differently. The basic object in DHTML(Dynamic Hypertext Markup Language) is a named rectangular region whose method of deceleration and JavaScript reference can differe  depending on the browser involved.                           

JavaScript Events: JavaScript is highly interactive because it is event driven. Events are actions that occur because of user interaction.   Using JavaScript, you can respond to an event using event handlers. You can attach an event handler to the HTML element for which you want to respond to when a specific event occurs. For Example, you could attach JavaScript's on Mouseover event handler to a button and specify some JavaScript to run whenever this event occurs against that button.                          

JavaScript Validation: JavaScript validation is a process that is used to check whether a user has filled in the form correctly before it's send to server. This is form validation. For Example, if your form has a box for the user to type their email address, you might want your form handler  to check that they have filled in their address before you deal with the rest of the form.

No comments:

Post a Comment