Referencing a window

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

    Referencing a window

    Hi

    I know how to open a new window from an html page with javascript.

    However once that page is opened ( in my case its like a popup index page ).
    I would like to know how to tell the original page to go to a specific page
    based on the link pressed on the new popup index page. I cant seem to find
    a way to refer to the other window.

    Thanks

    AL


  • Brian Genisio

    #2
    Re: Referencing a window

    Andy Levy wrote:
    [color=blue]
    > Hi
    >
    > I know how to open a new window from an html page with javascript.
    >
    > However once that page is opened ( in my case its like a popup index page ).
    > I would like to know how to tell the original page to go to a specific page
    > based on the link pressed on the new popup index page. I cant seem to find
    > a way to refer to the other window.
    >
    > Thanks
    >
    > AL
    >
    >[/color]

    window.opener

    Comment

    • DU

      #3
      Re: Referencing a window

      Andy Levy wrote:
      [color=blue]
      > Hi
      >
      > I know how to open a new window from an html page with javascript.
      >
      > However once that page is opened ( in my case its like a popup index page ).
      > I would like to know how to tell the original page to go to a specific page
      > based on the link pressed on the new popup index page. I cant seem to find
      > a way to refer to the other window.
      >
      > Thanks
      >
      > AL
      >
      >[/color]

      <a href="path/filename.ext" onclick="if(ope ner) {opener.locatio n.href =
      this.href;} return false;" title="Clicking this link will load it in
      the main window"> Descriptive text of the link</a>

      Not tested.

      DU

      Comment

      Working...