Advertisment

How to embed JavaScript in HTML?

author-image
CIOL Bureau
Updated On
New Update

BANGALORE, INDIA: This online javascript lessons have been developed keeping the beginner in mind. Since JavaScript started off as a client-side language (it is now extensive used in Microsoft's ASP technology for server-side scripting), we need to understand how we can include it on web pages so that browsers (clients) can read it.

JavaScript works with HTML to bring interactivity to otherwise static documents and can be embedded inside HTML documents in three ways:

    * The code is placed between tags.

    * Code is included inside an HTML tag.

    * The entire code is placed in another file, which is called through the SRC attribute of the

tech-news