469,632 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

frame "onload" fires only first time in NN?

TPG
I'd like a Javascript function I have written to be invoked whenever
*any* new document is been loaded into a particular frame (i.e I don't
control the incoming document's BODY tag). Under MSIE5.5, I've found
that the ONLOAD handler attribute of the corresponding frame element
is invoked *every* time a new document is loaded into that frame.
This works fine for me.

Under NN6.2, however, I find that the same ONLOAD handler attribute
fires only the *first* time a new document is loaded - and never
subsequently.

I have tried inserting a trigger via scripts that set the "onload"
propery of the frame-element and the frame-window objects, but under
NN6.2 neither causes the onload handler to be invoked after the
initial load.

I have thought of (and wasted a lot of time implementing) several
ingenious but fruitless attempts at workarounds - and now I am ready
to admit that I need some expert help.

TPG
Jul 20 '05 #1
1 3444
TPG wrote on 24 Nov 2003:
I'd like a Javascript function I have written to be invoked
whenever *any* new document is been loaded into a particular
frame (i.e I don't control the incoming document's BODY tag).
Under MSIE5.5, I've found that the ONLOAD handler attribute of
the corresponding frame element is invoked *every* time a new
document is loaded into that frame. This works fine for me.

Under NN6.2, however, I find that the same ONLOAD handler
attribute fires only the *first* time a new document is loaded
- and never subsequently.

I have tried inserting a trigger via scripts that set the
"onload" propery of the frame-element and the frame-window
objects, but under NN6.2 neither causes the onload handler to be
invoked after the initial load.

I have thought of (and wasted a lot of time implementing)
several ingenious but fruitless attempts at workarounds - and
now I am ready to admit that I need some expert help.


According to the HTML 4.01 specification, there is no 'onload'
intrinsic event for FRAME elements, only the BODY and FRAMESET
elements. This means that Internet Explorer isn't implementing the
specification properly (what a surprise). I would think the only
reason why Netscape would allow it is because the Frame object is
basically the window object.

Perhaps someone else could suggest a way around this.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by George Hester | last post: by
4 posts views Thread by Viken Karaguesian | last post: by
6 posts views Thread by pierre.bru | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.