[logo]
Best viewed with a browser
released in the 21st Century

(but where possible the site
is lynx-friendly)
Copyright © 2005,
Bruno Andrighetto

Home  >  JavaScriptorium  >  Palindrome Tester

Palindrome Tester

Enter a string:



Palindrome Tester

What is a palindrome? A palindrome is a word or phrase which reads the same forward or backward. Here are some examples: "radar", "Abba", "Madam, I'm Adam"

This little JavaScript application let's you type in a phrase and then analyzes it to see if it is a palindrome. Spaces and some punctuation marks are ignored, as are differences in case. Therefore, "A man, a plan, a canal: Panama" is a valid palindrome.

Just type a phrase in the 'Input' area, then click on the 'Test for Palindrome' button. The verdict will be displayed below the button.

Tested with Netscape (4 and 6), Mozilla and Internet Explorer (4 and 5), on MacOS, Linux and Windows. See further down the page for versions that may work with other browsers.



Some more example palindromes:

  • "Able was I ere I saw Elba"
  • "Pa made Ed a map"
  • "kayak", "Ada", "Glenelg" (a suburb in Adelaide)
  • the trivial cases of a blank, a single character, or a string of identical characters


Go back to the Top

Palindrome Tester - No Layers Version

The result of the palindrome test will be displayed in an alert box when you click on 'Test for Palindrome'.

Enter a string:


Go back to the Top

Palindrome Tester - Dialog Box Version

For the Dialog Box version <- click link.


Go back to the Top

Last updated: August 25, 2002

Home  >  JavaScriptorium  >  Palindrome Tester
1