www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to let different windows talk to each other?

  1. #1
    Join Date
    Jan 2006
    Posts
    8

    How to let different windows talk to each other?

    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?

  2. #2
    Join Date
    May 2003
    Location
    Between Baltimore and DC
    Posts
    3,579
    See if this gives you some help:
    http://radio.javaranch.com/pascarell...063002000.html

    Eric

  3. #3
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    Quote Originally Posted by wll6568
    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?
    If the form in the parent document is named 'f1', and its text field is named 't1':
    Code:
    <a href='#' onclick="opener.document.forms.f1.t1.value=this.text; return false">I was clicked</a>

  4. #4
    Join Date
    Jan 2006
    Posts
    8
    Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles