Connecting Tech Pros Worldwide Forums | Help | Site Map

iframe changing fields in main window

Geoff
Guest
 
Posts: n/a
#1: Jul 23 '05
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.

Vincent van Beveren
Guest
 
Posts: n/a
#2: Jul 23 '05

re: iframe changing fields in main window


I believe this should work:

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

Good luck,
Vincent

Geoff wrote:
[color=blue]
> 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.[/color]

Geoff
Guest
 
Posts: n/a
#3: Jul 23 '05

re: iframe changing fields in main window


Thank you. That worked perfectly. :)

Vincent van Beveren <vincent@provident.remove.this.nl> wrote in message news:<40c439e4$0$563$e4fe514c@news.xs4all.nl>...[color=blue]
> I believe this should work:
>
> window.parent.document.title = 'Hello, this is a new title'+
> ' from an I frame';
>
> Good luck,
> Vincent
>
> Geoff wrote:
>[color=green]
> > 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.[/color][/color]
Closed Thread


Similar JavaScript / Ajax / DHTML bytes