Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - What does this do?

 
Thread Tools Search this Thread
Old 04-26-2004, 12:18 PM   #1
Default What does this do?


onfocus="this.blur()"

It's in all the urls. I can't see that it does anything. I've looked
at it in IE6 and Slimbrowser. It just seems to take up space and,
since I've been explicitly ordered to reduce the urls as much as
possible....I think I should just bin it whenever I find it. Good idea
or not?

BB


Big Bill
  Reply With Quote
Old 04-26-2004, 12:38 PM   #2
Ryan Stewart
 
Posts: n/a
Default Re: What does this do?

"Big Bill" <> wrote in message
news:...
> onfocus="this.blur()"
>
> It's in all the urls. I can't see that it does anything. I've looked
> at it in IE6 and Slimbrowser. It just seems to take up space and,
> since I've been explicitly ordered to reduce the urls as much as
> possible....I think I should just bin it whenever I find it. Good idea
> or not?
>
> BB


onfocus: when this link/control/part of the page gets clicked on (receives
the focus)
this.blur(): remove the focus from this link/control/part of the page

It's probably there to keep the dotted outline from showing on a link after
you click it in IE.


  Reply With Quote
Old 04-26-2004, 01:00 PM   #3
Jukka K. Korpela
 
Posts: n/a
Default Re: What does this do?

"Ryan Stewart" <> wrote:

> It's probably there to keep the dotted outline from showing on a link
> after you click it in IE.


It also prevents people using keyboard-only access from following the
link. When they tab to the link, they can normally hit the enter key to
follow the link - but onfocus="this.blur()" removes the focus before they
do that.

Using the nonstandard hidefocus attribute is a less destructive method of
hiding the focus outline. However it has the drawback of "working" even
when JavaScript is disabled.

Removing the attributes is thus probably a good idea, but we cannot
really _know_ that without seeing the URL. There _might_ be situations
where the attribute does something useful, or at least harmless.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


  Reply With Quote
Old 04-26-2004, 01:17 PM   #4
Steve Pugh
 
Posts: n/a
Default Re: What does this do?

Big Bill <> wrote:

>onfocus="this.blur()"
>
>It's in all the urls. I can't see that it does anything.


Try tabbing through the links in IE. On a normal web page a dotted
rectangle appears around each link. On a web page with the above on
every link it doesn't.

>It just seems to take up space and,
>since I've been explicitly ordered to reduce the urls as much as
>possible....I think I should just bin it whenever I find it. Good idea
>or not?


Good idea. It harms accessibility by making it harder for people who
navigate via the keyboard rather than the mouse to use the page.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
  Reply With Quote
Old 04-26-2004, 02:56 PM   #5
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: What does this do?

Quoth the raven named Big Bill:

> I've looked at it in IE6 and Slimbrowser.


Since, AFAIK, Slimbrowser is just a shell for IE, why not get a couple
of other browsers? Some sites look markedly different in, say, a Gecko
browser. For starters:

http://mozilla.org/
http://mozilla.org/products/firefox/
http://www.opera.com/

--
-bts
-This space intentionally left blank.
  Reply With Quote
Old 04-26-2004, 06:08 PM   #6
Big Bill
 
Posts: n/a
Default Re: What does this do?

On Mon, 26 Apr 2004 13:56:55 GMT, "Beauregard T. Shagnasty"
<> wrote:

>Quoth the raven named Big Bill:
>
>> I've looked at it in IE6 and Slimbrowser.

>
>Since, AFAIK, Slimbrowser is just a shell for IE, why not get a couple
>of other browsers? Some sites look markedly different in, say, a Gecko
>browser. For starters:
>
>http://mozilla.org/
>http://mozilla.org/products/firefox/
>http://www.opera.com/


Actually I already have those, and for a while I had Avant too but it
tends to dominate so I dumped it. I'll take a peek. We shouldn't
forget Netscape either now that AOL are giving it mouth-to-mouth.

BB
  Reply With Quote
Old 04-26-2004, 06:34 PM   #7
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: What does this do?

Quoth the raven named Big Bill:

> On Mon, 26 Apr 2004 13:56:55 GMT, "Beauregard T. Shagnasty"
> <> wrote:


>>http://mozilla.org/
>>http://mozilla.org/products/firefox/
>>http://www.opera.com/

>
> Actually I already have those, and for a while I had Avant too but it
> tends to dominate so I dumped it. I'll take a peek. We shouldn't
> forget Netscape either now that AOL are giving it mouth-to-mouth.


I can forget Netscape. <g> Their versions tend to be bloated with many
megabytes of AOL crap. The forthcoming 7.2 is supposedly only an
update to the 1.6 engine.

--
-bts
-This space intentionally left blank.
  Reply With Quote
Old 04-26-2004, 06:45 PM   #8
C A Upsdell
 
Posts: n/a
Default Re: What does this do?

"Beauregard T. Shagnasty" <> wrote in message
news:wKbjc.120550$.. .
> Quoth the raven named Big Bill:
> I can forget Netscape. <g> Their versions tend to be bloated with many
> megabytes of AOL crap. The forthcoming 7.2 is supposedly only an
> update to the 1.6 engine.


7.1 is based on the 1.4 engine. The next version (7.2?) will be based on
1.7.



  Reply With Quote
Old 04-26-2004, 07:20 PM   #9
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: What does this do?

Quoth the raven named C A Upsdell:

> "Beauregard T. Shagnasty" <> wrote:
>
>> I can forget Netscape. <g> Their versions tend to be bloated with
>> many megabytes of AOL crap. The forthcoming 7.2 is supposedly
>> only an update to the 1.6 engine.

>
> 7.1 is based on the 1.4 engine. The next version (7.2?) will be
> based on 1.7.


Ok, that's good. I'm pretty sure I had read somewhere 7.2 was to be
the 1.6 engine, but perhaps they've delayed it a bit to take advantage
of the forthcoming 1.7. Thanks.

--
-bts
-This space intentionally left blank.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump