Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] required entry field
- From: christ at saeweb.com (Chris Tifer)
- Subject: [Javascript] required entry field
- Date: Wed Mar 26 15:42:57 2003
I would naturally think that once onBlur is called, it's going to lose focus no matter what. I would change the routine so that way it specifically sets the focus back to that field instead of just trying to cancel the onblur event. Chris Tifer http://emailajoke.com ----- Original Message ----- From: "Michael Dougherty" <Michael_Dougherty@xxxxxxx> To: <javascript@xxxxxxxxxx> Sent: Wednesday, March 26, 2003 4:25 PM Subject: [Javascript] required entry field > 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? > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] required entry field
- From: Michael Dougherty
- [Javascript] required entry field
- Prev by Date: [Javascript] Time & day-based redirects?
- Next by Date: [Javascript] required entry field
- Previous by thread: [Javascript] required entry field
- Next by thread: [Javascript] required entry field
- Index(es):