Help!!! Help!!! Onblur event

Results 1 to 3 of 3

Thread: Help!!! Help!!! Onblur event

  1. #1
    faizal Guest

    Default Help!!! Help!!! Onblur event

    If I use an "onBlur" event in an input field with a function to check a null value and an Alert() event, can I change the focus of the input box to go back to that input field after the user clicks "OK"?<BR><BR> function name() {<BR> var check = window.document.personal.htelnr.value<BR> if (check == "") {<BR> alert("please fill in your first name")<BR> }<BR> }

  2. #2
    Join Date
    Dec 1969

    Default Focus()


  3. #3
    Join Date
    Dec 1969

    Default RE: Help!!! Help!!! Onblur event

    Try this:<BR>function name() {<BR>var check = window.document.personal.htelnr.value<BR>if (check == "") {<BR>alert("please fill in your first name")<BR>window.document.personal.htelnr.focus()< BR>}<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts