469,331 Members | 4,506 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

setting title from iframe

The code I'm using works in firefox, but not in IE. Both the Top page
and the iframe reside in the same folder on the same server.
>From the iframe page I am using:
<body onLoad="top.document.title=document.title;" >

I added in alerts and the proper title names come up in both browsers,
but the actual tile in IE doesn't change. I need to do this without a
reload of the top page. I've been searching on google and haven't found
any clues.

I'd love any help or suggestions that you might have.

Nov 15 '06 #1
2 1638

kathy wrote:
The code I'm using works in firefox, but not in IE. Both the Top page
and the iframe reside in the same folder on the same server.
From the iframe page I am using:
<body onLoad="top.document.title=document.title;" >

I added in alerts and the proper title names come up in both browsers,
but the actual tile in IE doesn't change. I need to do this without a
reload of the top page. I've been searching on google and haven't found
any clues.
did you try some other things like these?

<body onLoad="top.document.title='test';" >
<body onLoad="top.document.title=self.document.title;" >

Peter

Nov 15 '06 #2
Peter,

I did try those as well and no change on IE. I also tried
OnLoad="alert(top.document.title);
alert(this.document.title);top.document.title=docu ment.title;" - and
the odd thing was the alerts printed the correct values. That's why I'm
wondering if I am not using the correct syntax for top.document.title -
I tried using parent.document.title as well and it didn't work either.

Nov 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by D. Alvarado | last post: by
2 posts views Thread by Paul Moffitt | last post: by
7 posts views Thread by Christopher J. Hahn | last post: by
2 posts views Thread by ptarjan | last post: by
3 posts views Thread by Adam Lipscombe | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.