script Element


« Previous Next »

The <script> element is used to define client-side JavaScripts.

The following JavaScript writes "Hello JavaScript!" into an HTML element with id="demo":







Live Demo & Try it yourself!