471,573 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 1238
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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

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.