Calculate the the length of your string
This website only made for study don't disturb please
Share this link
HTML51010.blogspot.com
<html>
<head>
<style type="text/css">
body{
background:lime;
}
input[type="text"]{
color:red;
height:50px;
width:300px;
font-size:2em;
}
</style>
<script type="text/javascript">
function nnn(){
var a=form.nn.value;
document.write("lengzh of yor string is ="+a.length)
}
</script>
</head>
<body><center>
<form name="form" >
<input type="text" name="nn" ><br><br><br><br>
<input type="botton" value="count length" onclick="nnn()">
</form>
</center>
Comments