Home » » Basic of Javascript in HTML

Basic of Javascript in HTML

Basic of Javascript in HTML

Basic of Javascript in HTML

Javascript

It is the combination of both java+html
It is also used for advanced we designing.

Program 1:

<html>
<head>
<title>
welcome
</title>
</head>
<body>
<script>
document.write("arun");
document.write("kumar");
</script>
</body>
</html>


Program 2:

<html>
<head>
<title>
wlecome
</title>
</head>
<body>
<script>
var a,b,c;
a=100;
b=200;
c=a+b;
doument.write("The value of c is:"+c);
</script>
</body>
</html>

Program 3:

<html>
<head>
<title>
welcome
</title>
</head>
<body>
<script>
var a;
a=20;
if(a>=18)
document.write("I am elgible for vote");
</script>
</body>
</html>


0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g