SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: giving focus

  1. #1
    SitePoint Enthusiast Zero G's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    giving focus

    Ok I have a link that calls a JavaScript function. But when people click on the link there’s and of those ugly little boxes around it that shows that it has focus. What I would like to do is give focus to something else (preferably nothing on the page (maybe the window))

  2. #2
    SitePoint Evangelist Mr. Brownstone's Avatar
    Join Date
    May 2002
    Location
    Relative
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add blur() somewhere inside your onclick event:
    Code:
    onclick="funkyGibbon(); blur();"
    Of course, that's just my opinion. I could be wrong.


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
  •