Results 1 to 3 of 3

Thread: vbscript lost focus routine

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Unhappy

    what the heck is the proper syntax for writing a lost focus routine in either vbScript or ASP? I know VB but am new to both vbScript and ASP. I noticed that what is Text1_GotFocus in VB is Text1_OnFocus in vbScript. What is the vbScript equivalent of Text1_LostFocus?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374
    Found my own answer. The equivalent of Text1_LostFocus in vbScript is Text1_OnBlur(). Damn I'm good!

  3. #3
    Lively Member
    Join Date
    Mar 2001
    Location
    Brooklyn, NYC
    Posts
    112

    Wink

    onblur()

    example

    <HTML>

    <SCRIPT LANGUAGE=VBSCRIPT>

    sub txtsam_onblur()

    msgbox "just testing"


    end sub



    </SCRIPT>


    <FORM NAME="frmsam">

    <Input type=text name="txtsam" value="testing">

    <Input type=text name="txtsam1" value="testing1" >

    </FORM>

    </HTML>

Posting Permissions

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



Click Here to Expand Forum to Full Width