window.createPopup() return value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin John Brindle

    window.createPopup() return value

    Is it possible to return a value from a popup window? I really need
    something that can do this and the behaviour of the createpopup method is
    perfect except i can't work out how to return a value.

    As an aside, I can't use other url's, which means it all needs to be
    contained within the one file, but that's something I can solve later!

    Martin


  • ASM

    #2
    Re: window.createPo pup() return value

    Martin John Brindle wrote:[color=blue]
    > Is it possible to return a value from a popup window? I really need
    > something that can do this and the behaviour of the createpopup method is
    > perfect except i can't work out how to return a value.[/color]

    all following would be in popup's page :

    opener.document .myForm.myText. value = document.itsFor m.istText.value ;

    opener.document .getElementById ('here').innerH TML = 'Hello from Popup';

    var O = opener.document ; // page of main window
    var P = document; // page in popup

    O.getElementByI d('there').inne rHTML = P.itsForm.istTe xtArea.value;
    O.getElementByI d('here').inner HTML = 'Hello again from Popup';

    alert('1st title of main page =\n"'+
    O.getElementsBy TagName('H1')[0]+'"');

    --
    Stephane Moriaux et son [moins] vieux Mac

    Comment

    Working...