Thursday, August 15, 2013

javascript length property

<html>
<body>

<script type="text/javascript">

var txt = "Hello World!";
document.write(txt.length);

</script>

</body>
</html>

result


No comments: