What does this "onfocus" value do?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Don

    #1

    What does this "onfocus" value do?

    What does the onfocus value of "this.selec t()" do in the following <input...> tag?

    <input type=text name="img" size=20 onfocus="this.s elect()" value="http://" tabindex=7>

    Thanks,
    Don


    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
  • Randy Webb

    #2
    Re: What does this &quot;onfocus&q uot; value do?

    Don wrote:[color=blue]
    > What does the onfocus value of "this.selec t()" do in the following <input...> tag?
    >
    > <input type=text name="img" size=20 onfocus="this.s elect()" value="http://" tabindex=7>[/color]

    Put it in a test page, test it and see.

    It will select all the text in the input.
    [color=blue]
    > Thanks,
    > Don[/color]

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Don

      #3
      Re: What does this &quot;onfocus&q uot; value do?

      On Fri, 19 Nov 2004 20:08:41 -0500, Randy Webb <HikksNotAtHome @aol.com> wrote:
      [color=blue]
      >Don wrote:[color=green]
      >> What does the onfocus value of "this.selec t()" do in the following <input...> tag?
      >>
      >> <input type=text name="img" size=20 onfocus="this.s elect()" value="http://" tabindex=7>[/color]
      >
      >Put it in a test page, test it and see.
      >
      >It will select all the text in the input.
      >[color=green]
      >> Thanks,
      >> Don[/color][/color]
      Thanks much Randy.
      Don


      ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
      http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
      ---= East/West-Coast Server Farms - Total Privacy via Encryption =---

      Comment

      Working...