India's First Software Developer Community

Javascript Installation

Install javascript code by two ways
    1) In same page called Internal Javascript

    2) by creating new javascript file with ".js" extension

Code used to link your js file in html page

     <script type="text/javascript" src="test.js">

Html Page

<!DOCTYPE html>
<title>Installation | W3CodeIndia </title>
<script type="text/javascript" src="test.js"></script>
<center><h2>Installation Of Javascript by w3codeindia.com</h2></center>
<center><button onclick="welcome()">Test Javascript</button></center>


Javascript File

function welcome(){                <!--we create function in javascript called welcome -->
    alert("Welcome To W3CodeIndia.com"); <!-- alert function used for create alert -->

Subscribe Us :

Chapters :-