SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Post How to pass back value from the window open to parent window

    HI,I need some help on javascript how can i get the value came from the window.open then pass the value to the parent window?





    Thank you in advance.

  2. #2
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay if i have this line of code,now when the child window opens,it displays some data in a table,now i want to click the id on the table and bring back the value to the parent window...I am confuse on how to do this.

    Code:
     function mywindow(myparam){
       window.open('tootherpage.php?id='+myparam,windowoptions);
    
    }
    HTML Code:
    <form>
       <label>Test</label>
      <input type="text" name="test" onclick="mywindow(myparam)">
    </form>
    Thank you in advance.

  3. #3
    SitePoint Wizard
    Join Date
    May 2012
    Posts
    1,096
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay i solved it now


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
  •