Child to Parent window communtication

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

    #1

    Child to Parent window communtication

    I was curious one day and started to explore the whole idea of a
    document opening a pop up and that pop up being able to send data, that
    was input by the user, back to the parent. Does anyone have expirence
    with this?

    Best Regards,
    Sandfordc

  • zzzxtreme@yahoo.com

    #2
    Re: Child to Parent window communtication

    try this



    <html><body>
    <script>var x = window.open();x .document.write ('<html><body>< input
    type="text" id="txt"><inpu t type="button"
    onclick="opener .document.getEl ementById(\'x\' ).value=documen t.getElementByI d(\'txt\').valu e"></body></html>');
    </script>
    <input type="text" id="x">
    </body></html>

    Comment

    • Sandfordc

      #3
      Re: Child to Parent window communtication

      Sweet It works

      Thanks very much!

      Sandfordc


      Comment

      • Sandfordc

        #4
        Re: Child to Parent window communtication

        Sweet It works

        Thanks very much!

        Sandfordc


        Comment

        Working...