Web Analytics Made Easy -
StatCounter scrpit to tell user not enough words - CodingForum

Announcement

Collapse
No announcement yet.

scrpit to tell user not enough words

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • scrpit to tell user not enough words

    anyone have a javascript function that- will tell the user if they have not put two or three words into a search field.

    thanks

  • #2
    Here's a simple script that you may be able to build on:

    function check()
    {
    V=document.getElementById('search').value
    if(V.split(" ").length>2)
    {
    //Success
    }
    else
    {
    alert('Please enter atleast 3 words.')
    }
    }
    Go to:
    http://www.TailsArchive.net/
    http://xfox.proboards21.com/

    Comment

    Working...
    X