473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mozilla blur() problem

Please take a look at this page:

http://home.comcast.net/~delerious1/index10b.html

There is javascript code that is executed when the page is loaded. The code
calls the focus() method and then the blur() method on the first anchor in the
box. In IE and Opera the code works. But in Mozilla, you can see the dotted
line around the first anchor, so it's as if the blur() method is not working.

Anyone know what's going on?

Jul 20 '05 #1
2 2531


de*******@no.spam.com wrote:
Please take a look at this page:

http://home.comcast.net/~delerious1/index10b.html

There is javascript code that is executed when the page is loaded. The code
calls the focus() method and then the blur() method on the first anchor in the
box. In IE and Opera the code works. But in Mozilla, you can see the dotted
line around the first anchor, so it's as if the blur() method is not working.


When I load the page with Netscape 7.1 then indeed there is a dotted
line around the first link, but when I hit enter on the keyboard the
link is not followed thus I think the blur() call works as far as
ensuring that the link doesn't have focus, only Mozilla seems to have a
bug to remove the dotted focus outline.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
On Sat, 20 Dec 2003 11:53:28 +0100, Martin Honnen <ma*******@yahoo.de> wrote:
When I load the page with Netscape 7.1 then indeed there is a dotted
line around the first link, but when I hit enter on the keyboard the
link is not followed thus I think the blur() call works as far as
ensuring that the link doesn't have focus, only Mozilla seems to have a
bug to remove the dotted focus outline.


Hmm, that's an interesting observation. I had thought that the blur() call
wasn't doing anything. I fixed this particular problem by making an
additional call to blur(), before the other calls. So instead of having:

element.focus();
element.blur();

I now have:

element.blur();
element.focus();
element.blur();

Now Mozilla doesn't have the dotted line anymore, and I had thought it was
because only the first call to blur() did anything while the subsequent calls
to focus() and blur() didn't do anything. But from what you say, that may not
be the case. Well, whatever, I have it working, that's all that matters. :-)

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: George Hester | last post by:
http://home.nycap.rr.com/foryorisonly/site.htm The top one is very different from the bottom one. If you do not recognize the difference scroll the images to the right. Not that the toolbar...
2
by: Peter Wright | last post by:
Hi all. Hopefully this should demonstrate the problem I'm having: http://flooble.net/~pete/focus-problem-demo/ (I'm testing it in Mozilla only, but I'm not sure if it's actually a...
7
by: Ragnorack67 | last post by:
Hi, is it possible to change a form text field to this.blur() from a separate function? So, what I want to do is when a button is click it will runblur(), and cause form input name "xyz" to go...
2
by: lazar | last post by:
I'm triing to write script that close popup window, when user click outside the popup. Script below is working fine in firefox (v1.0.3), but not in IE. I tried also to print hello but still...
1
by: anand basha | last post by:
Hi ! What is the replacement for onBlur in Mozilla <body STYLE='background-color:buttonface;' leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 onBlur="window.focus()"> *** Sent via...
6
by: 4Ankit | last post by:
hello all, i am having trouble understanding what the difference is between BLUR and FOCUS. I need to include these functions in my form and i am unsure what these features do and how i incorporate...
2
by: Gerdus van Zyl | last post by:
Does anyone have a relatively fast gaussian blur implemented in pure python? Below is my attempt but it takes 2.9 seconds for a 320x240 image. Image comes from byte string: self.array =...
3
by: PrabodhanP | last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF. It is located at the location.....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.