SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: onfocus issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onfocus issue

    hey all,

    i got this problem....wen i click anywere in my form one of my buttons hits focus ...is der a way that wen i click on the form it focuses the form rather then the buttons so the buttons dont get called?

    many thanks..

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please provide a link to the page in question.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The following tags are the ones that the standards say should support focus:

    A, AREA, LABEL, INPUT, SELECT, TEXTAREA, and BUTTON

    Any other tags such as FORM are purely at the discretion of the browser as to whether you can focus on it and most browsers wont support it because it is not part of the standards.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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