<html>
<head>
<script>
function palin()
{
var n,r,sum=0,temp;
n=Number(document.getElementById(“no_input”).value);
temp=n;
while(n>0)
{
r=n%10;
sum=sum*10+r;
n=parseInt(n/10);
}
if(sum==temp)
{
alert("Palindrome Number";
}
else
{
alert("Not Palindrome Number");
}
}
</script>
</head>
<body>
Enter any Number: <input id="no_input">
<button onclick="palin()">Check Here</button>
</body>
</html>