JavaScript is a client-side programming language that is embedded into Web pages to add dynamic effects to an otherwise static Web page. JavaScript closely resembles the language Java from which it inherits much of its syntax and functionality. To embed JavaScript in your Web page, enclose it in HTML <script> tags.