iframe changing fields in main window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff

    #1

    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.
  • Vincent van Beveren

    #2
    Re: iframe changing fields in main window

    I believe this should work:

    window.parent.d ocument.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]

    Comment

    • Geoff

      #3
      Re: iframe changing fields in main window

      Thank you. That worked perfectly. :)

      Vincent van Beveren <vincent@provid ent.remove.this .nl> wrote in message news:<40c439e4$ 0$563$e4fe514c@ news.xs4all.nl> ...[color=blue]
      > I believe this should work:
      >
      > window.parent.d ocument.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]

      Comment

      Working...