setting title from iframe

K

kathy

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.
 
P

Peter Michaux

kathy said:
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.

<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
 
K

kathy

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=document.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top