Closed Bug 321263 Opened 19 years ago Closed 19 years ago

Event onBlur doesn't work using IFRAME

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 131784

People

(Reporter: viniciuscamara, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

Hello Fellows,
I tried to use a Cross-Browser Rich Text Editor developing by Kevin Roth (kevin@NOSPAMkevinroth.com - remove NOSPAM) and works fine, but my application has a specific characteristic when the component IFRAME lost the focus or either using the onblur event.
IE works fine but in FF the event doesn't respond. 
May some people help me?
Thanks
Best Regards!
Merry Christmas

Reproducible: Always

Steps to Reproduce:
1.place the event "onblur" on tag IFRAME; 
2.pass some on the function.js expecting to do something;
3.waiting answer
http://www.w3.org/TR/html4/interact/scripts.html#events
"onfocus = script [CT]
    The onfocus event occurs when an element receives focus either by the pointing device or by tabbing navigation. This attribute may be used with the following elements: A, AREA, LABEL, INPUT, SELECT, TEXTAREA, and BUTTON.
onblur = script [CT]
    The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation. It may be used with the same elements as onfocus."

So according to the specs., this is INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Thank you Adam Guthrie about your explanation, but I think I'm not clearly about the problem occur to me.
I found the problem with the onblur event trying to use the Rich Text Editor. This  editor use the component IFRAME to accept HTML tags, but when the component IFRAME loses the focus I expect some action like "alert('testing')".

Look below the part of the code:
<iframe onblur="alert('testing')"></iframe>

When I use IE works fine, but with the FF didn't work.

Do you have any idea?
Thank U again.
Best Regards
Mery Christmas
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 131784 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.