469,289 Members | 2,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

iframe changing fields in main window

I have an iframe in a page which is refreshed every 5 seconds. It
displays different information based on the contents of a file.

I was wondering if anyone could help me by providing an example of the
javascript I would need to manipulate a field in the main window from
within the iframe.

Thanks very much.
Jul 23 '05 #1
2 1209
I believe this should work:

window.parent.document.title = 'Hello, this is a new title'+
' from an I frame';

Good luck,
Vincent

Geoff wrote:
I have an iframe in a page which is refreshed every 5 seconds. It
displays different information based on the contents of a file.

I was wondering if anyone could help me by providing an example of the
javascript I would need to manipulate a field in the main window from
within the iframe.

Thanks very much.


Jul 23 '05 #2
Thank you. That worked perfectly. :)

Vincent van Beveren <vi*****@provident.remove.this.nl> wrote in message news:<40*********************@news.xs4all.nl>...
I believe this should work:

window.parent.document.title = 'Hello, this is a new title'+
' from an I frame';

Good luck,
Vincent

Geoff wrote:
I have an iframe in a page which is refreshed every 5 seconds. It
displays different information based on the contents of a file.

I was wondering if anyone could help me by providing an example of the
javascript I would need to manipulate a field in the main window from
within the iframe.

Thanks very much.

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Christopher J. Hahn | last post: by
7 posts views Thread by Patrick.O.Ige | last post: by
7 posts views Thread by ukrbend | last post: by
3 posts views Thread by bulldog8 | last post: by
reply views Thread by msoliver | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.