Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] required entry field


  • From: Michael_Dougherty at PBP.com (Michael Dougherty)
  • Subject: [Javascript] required entry field
  • Date: Wed Mar 26 15:26:12 2003

function isValid( checkValue ) {
	return (checkValue!='')
	}

<input type='text' name='NeverBlank' value='' onBlur='return
isValid(this.value)' />


  The idea is to prevent the user from exiting this field while it's blank.
(OK, so this would be a user-hostile experience - it's just an example)

  What i'm seeing is that when the user hits TAB, the focus moves to the
next field - regardless of the return value from isValid()

  Any thoughts?