May 6, 2013

Using substr function with string

Coding

<html>
<body>
<script language="JavaScript">
var str="W3Schools are great"
document.write(str.substr(3,6))
</script>
</body>
</html>

No comments:

Post a Comment

Popular Posts

Views