iframe changing fields in main window

G

Geoff

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

Vincent van Beveren

I believe this should work:

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

Good luck,
Vincent
 
G

Geoff

Thank you. That worked perfectly. :)

Vincent van Beveren said:
I believe this should work:

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

Good luck,
Vincent
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top