It also simplifies the process of computing and working with dates and times. These are just a few of JavaScript's many capabilities. JavaScript can be used to greatly enhance your HTML code. Besides allowing control over the appearance and content of Web pages, JavaScript provides control over the behavior of the browser, and also over the behavior and content of HTML forms that appear in a Web page. The use of event handlers can also be powerful.
Event handlers specify code to be executed when a particular event occurs.
The HTML fragment shown below produces a simple form with a button. The previous examples highlight only the simplest features of client-side JavaScript. They don't touch on its ability to access the hierarchy of objects that are based on the Web content. Web Authors . Strategists Style Sheets .