Wednesday, 4 July 2012

Ex31: Char Left & Right function in VBScript

Return a specified number of characters from the left or right side of a string

<!DOCTYPE html>
<html>
<body>


<script type="text/vbscript">
sometext="Welcome to our Web Site!!"
document.write(Left(sometext,5))
document.write("<br />")
document.write(Right(sometext,5))
</script>


</body>
</html>

No comments:

Post a Comment