473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1771

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Soren Vejrum | last post by:
I am working on a web-based html editor using MSIE's designmode and iframes. Everything works just fine, but MSIE changes all my relative "a href" and "img src" links (i.e. "/index.asp") to...
3
by: D. Alvarado | last post by:
Hello, I am trying to find the <TITLE> element of my document. Normally alert(document.title); works just fine, but when this statement is within a page that is a frame in a larger document,...
2
by: Tom Van Overbeke | last post by:
Hi, I created a web page that displays a logfile monitor i wrote for monitoring our servers. it refreshes every minute and displays a text file in an iframe. I'd like to reduce the font size so...
2
by: Paul Moffitt | last post by:
We have a Javascript function that opens an electronic document in a subwindow. The Title bar of the subwindow shows the filepath of the document. Looking at the script below is there any way to...
3
by: Russell | last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull. I have a modal dialog that is an IFrame. The IFrame contains another window - which contains the appropriate...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
2
by: ptarjan | last post by:
I'm trying to make a little website that allows you to post back the answer to your search query. I print out some HTML and then put an IFRAME below to let people navigate around to find the...
3
by: Adam Lipscombe | last post by:
Folks, I want to be able to get title of a document that is presented within an Iframe with the id "popupFrame". There may be more than 1 instance of the iframe in the page. This is my...
2
by: hi35 | last post by:
My friend wants to make a site but his IT teacher says tht he needs to have a different title on each page. He also wants an iframe so tht he can navigate with his pages easier. But the problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.