• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Upcoming Conferences

    • no upcoming events
  • Return the length of a string

    By krates | May 21, 2008

    Sometimes you need to get the length in numbers of a string

    you can easily do it by using javascript

    Syntax:

    <html>
    <body>
    <script type=”text/javascript”>
    var text=”Count me!”;
    document.write(text.length);
    </script>
    </body>
    </html>

    Thanks

    krates

    Share and Enjoy:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Topics: Javascript | Comments Off

    Related Links:

    Comments are closed.