Friday, December 29, 2017

How To Print Number From 0 To 50 Different By 2

Hello Friends My Name Is Viraj,Today I Will  Print Number From 0 To 50 Different By 2 On Your Web Page.

Here In This Html Tutorial We Will  Print Number From 0 To 50 Different By 2.

So In This Blog We Will Print Number From 0 To 50 Different By 2.

Action Will Be Done On Button Control Using Html/Javascript Code.

Here Is An Example Related To Topic...

Step 1 :

<html>
<head>
<body>
<button onclick="data()">click</button>
<script>
function data()
{
var num;
for(num=0;num<50;num=num+2)
{
document.write("<br>"+num);
}
}
</script>
</body>
</head>
</html>

Output :




1 comment:

How To Create Image Gallery In Html

Hello Friend My Name Is Viraj,Today I Will Create Image Gallery And Display On A Webpage.The emergence of CSS3 technology has enabled web d...