Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Palindrom Tester</title>
- <script type="text/javascript" src="palindrom.js"> </script>
- </head>
- <body>
- <script type="text/javascript">
- fraza = prompt("Upisi rijec ili frazu", "Ovo nije palindrom");
- if (jePalindrom(fraza)) {
- document.write("'" + fraza + "' <b>JEST</b> palindrom.");
- }
- else {
- document.write("'" + fraza + "' <b>NIJE</b> palindrom.");
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment