Hi Alok,
Just input one string from user, just reverse it,
eg: if alok is a keyword, reverse of a string ll be 'kola'.
and check the initial string and output string are same, if it is same, then alert that its a palindrome. if not 'not a palindrome'
function for reverse of a string,
<script type="text/javascript">
var my_str="siliconindia"
var i=my_str.length;
i=i-1;
for (var x = i; x >=0; x--)
{
document.write(my_str.charAt(x));
}
</script>
Jan 31, 2011