Web Analytics Made Easy -
StatCounter On focus - CodingForum

Announcement

Collapse
No announcement yet.

On focus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • On focus

    on focus doesnt work why?

    <input id="size" type="text" value="16" class="StyleVal" style="width: 1.5em" onfocus="TEXT(this.id)" onblur="UNTEXT(this.id)"></input>

    thanks alot
    http://www.bluephoenix.uni.cc/

  • #2
    I don't get what it's meant to do?

    Comment


    • #3
      its just ment to execute this function

      TEXT(id)
      {
      document.getElementById(id).style.backgroundcolor="white"
      }

      thanks
      http://www.bluephoenix.uni.cc/

      Comment


      • #4
        and how can i make it select all the text in the area onfocus?
        http://www.bluephoenix.uni.cc/

        Comment

        Working...
        X