VBScript StrReverse Function

Advertisements


StrReverse :

The StrReverse Function reverses the specified string.

Syntax :

StrReverse(string) 

Example :

<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">

document.write("Line 1 : " & StrReverse("VBSCRIPT") & "<br />")
document.write("Line 2 : " & StrReverse("My First VBScript") & "<br />")
document.write("Line 3 : " & StrReverse("123.45") & "<br />")

</script>
</body>
</html>

When you save it as .html and execute it in Internet Explorer, then the above script will produce the following result:

Line 1 : TPIRCSBV
Line 2 : tpircSBV tsriF yM
Line 3 : 54.321


Advertisements
Advertisements