Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England, Hythe
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onFocus="This.Blur();" on buttons

    can i have this onFocus="This.Blur();" on buttons because i have got it at the monet but a thin black line still apears on my button. how can i get rid of it

    thank you very much for the help

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yes you can. Just remember that javascript is case sensitive.
    Code:
    onFocus="this.blur();"
    Also this really belongs in either the html & css forum or the javascript forum.
    Omnis mico antequam dominus Spookster!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    DON'T DO THIS. DON'T EVER EVER USE onfocus="this.blur()"

    Because it makes your page utterly inaccessible for people who don't use a mouse. This came up quite recently - http://www.codingforums.com/showthre...threadid=16140
    Last edited by brothercake; 04-11-2003 at 03:47 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What the "King of the Sacred Mice" is trying to say (non-hostile like...) instead of calling it onFocus, instead, may we suggest you use onMouseUp...

    onMouseUp="this.blur();"



    You can, however, do whatever you like to your site... it is your site, anyway.
    Last edited by Quiet Storm; 04-11-2003 at 05:06 PM.
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Quiet Storm
    "King of the Sacred Mice" .
    Well ... I come and go with this diplomacy lark
    Last edited by brothercake; 04-11-2003 at 05:20 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Quiet Storm
    it is your site, anyway.
    True, but unless the author suffers from a bad case of narcissism (when all you do is look in the mirror thinking how cute you are), the web sites are build for the VISITORS
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Vladdy
    True, but unless the author suffers from a bad case of narcissism (when all you do is look in the mirror thinking how cute you are), the web sites are build for the VISITORS
    So.... people who design art - should create what the public wants to see?
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Quiet Storm
    So.... people who design art - should create what the public wants to see?
    Not necessarily, but that's not the point -

    Say you run a museum - the exhibits may be controversial, or not, but that's not an accessibility issue. The accessibility issues are, for example, whether you can get in with a wheelchair.

    Apply that to a website and it's the same thing - the accessibility issues are whether people can navigate, comprehend, and use the site. Whether your visitors like it nor not, and whether that's important, is a different thing entirely.
    Last edited by brothercake; 04-12-2003 at 12:43 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #9
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    I absolutely agree brothercake.

    Unfortunately!!

    Does the onMouseUp code work across all browsers? I have used the onfocus bit about 2500 times and think I'll change it for the next upload.

    If the answer is yes, then what program can anyone recommend to make changing 2500 words on about 600 pages in one go??

    Notepad just aint gonna do it.

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by bazz
    what program can anyone recommend to make changing 2500 words on about 600 pages in one go??
    You could try BK Replace EM
    Last edited by brothercake; 04-12-2003 at 12:44 AM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #11
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts
    onload = function() {
    a_tags=document.getElementsByTagName('a')
    for (i=0;i<a_tags.length;i++) {
    a_tags[i].onfocus=blur_links
    }
    }

    function blur_links() {
    this.blur()
    }

    this gets rid of em all ^-^

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by mattover-matter
    this gets rid of em all ^-^
    I refer the honourable gentleman to the answer I gave some moments ago.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

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