Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to cancel the saveFavorite behavior's onload event?

1 view
Skip to first unread message

David Patow

unread,
Oct 27, 2005, 1:20:36 PM10/27/05
to
I'm looking for a way to prevent IE from restoring the URL's of nested
<IFRAME>'s when the user selects a saved favorite.

*BACKGROUND* When the user chooses the /Favorites/Add to Favorites/ menu
command, IE saves not only the URL of the page, but also the URL of all
nested <IFRAME>'s. So, when the user later selects the saved favorite, the
IFrame's are also restored to their URL's. Unfortunately, my app uses URL's
with volatile values in the frames. So, I need a way to prevent IE from
setting the URL's on the nested frames.

*TRIED* The docs say that the onsave and onload events can be cancelled, but
I can't figure out how. "event.returnValue" has no effect. Returning true
or false from my event handler has no effect.

*TRIED* I noticed that the favorite file contains the original SRC=
attribute of the frame, so I tried changing the SRC attribute on the frame
during my onload handler. No effect.

So, how can I do this?
0 new messages