What's the better solution for this javascript code not using reverse method -


i'm trying code works not success , need find out mistake make works. don't want use reverse method better , fast solution find other way, it's challenge me. instructions how solve problem? input welcomed.

thanks

    <body>     <form id="form_id">        <input type="text" id="your_input" />     </form>     <script>         ispalindrome = function() {             var len = this.length-1;                 (var = 0; <= len; i++) {                     if (this.charat(i) !== this.charat(len-i)) {                     return false;                     }                 }                 else if (i === (len-i)) {                     return true;                 }                 return true;             }              document.getelementbyid("form_id").onsubmit = function() {                ispalindrome(document.getelementbyid('your_input').value);                 return false;             }      </script>  </body> </html> 


Comments

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

delphi xe7 upload/download dropbox file using the rest client and show progress -

java - Get more than One value and display it -