<script type="text/javascript">
function Reverse(str)
{
alert('original string:-' +str);
alert('reveresed string:-' +str.split("").reverse().join(""));
}
</script>
<asp:Button ID="Button1" runat="server" Text="Button"
OnClientClick="Reverse('12345'); return false;" />
<asp:Button ID="Button2" runat="server" Text="Button"
OnClientClick="Reverse('vishalkumar'); return false;" />
output:-54321
ramuklahsiv