How to let different windows talk to each other?

Discussion in 'JavaScript' started by wll6568, Apr 30, 2008.

  1. #1
    I have a page having
    - a text field
    - a link opening a pop up page.

    On that pop up page, I want it so that when user clicks on it, the original web page's text field is valued with the link anchor text.

    Can someone guide me how to do this?
     
    wll6568, Apr 30, 2008 IP
  2. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Try this:
    
    <a href='somewhere' onclick="opener.document.forms.nameOfForm.fieldName.value=this.text">CLICK ME</a>
    Code (markup):
     
    Logic Ali, Apr 30, 2008 IP