Results 1 to 3 of 3

Thread: how to populate parent window from child window.

  1. #1
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to populate parent window from child window.

    hey guyz am new to this forum.......i need some help guyz.....i wanna know how can i populate a textbox in parent window from child window......am new to javascript guyz...so i appreciate a brief syntax of what to do and how to do....thanx guyz

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Huh?
    Don't know what you mean.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Javascript code segment on the child window's page:

    Code:
    window.opener.document.forms['test'][0].value='It works!';
    On the parent window's page:

    HTML Code:
    <form name="test">
    <input type="text">
    </form>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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