Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] required entry field
- From: trojani2000 at hotmail.com (BEKIM BACAJ)
- Subject: [Javascript] required entry field
- Date: Thu Mar 27 11:49:56 2003
Einstein went mad when he heard that somebody wrote SF novel about a man who
traveled with the speed of light and saw the batle of Waterloe, for it is
insaine he yelled.
But 'you' can init the new battle at Waterlloe again
function isValid() { if(NeverBlank.value==''){
NeverBlank.focus()
}
}
dejavoo - loops forever - if the user does not supply some chars!
Chers!
>From: "Michael Dougherty" <Michael_Dougherty@xxxxxxx>
>Reply-To: "[JavaScript List]" <javascript@xxxxxxxxxx>
>To: <javascript@xxxxxxxxxx>
>Subject: [Javascript] required entry field
>Date: Wed, 26 Mar 2003 16:25:15 -0500
>
>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
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
- Follow-Ups:
- [Javascript] required entry field
- From: Rodney Myers
- [Javascript] required entry field
- Prev by Date: [Javascript] select
- Next by Date: [Javascript] select
- Previous by thread: [Javascript] required entry field
- Next by thread: [Javascript] required entry field
- Index(es):