Link to home
Start Free TrialLog in
Avatar of Gary
GaryFlag for Ireland

asked on

Self.opener and innerHTML

Is it possible from a popup window to set innerHTML in a div or span on the parent window, tried a few ways but couldnt get it to work

Basically got a drop down that fires the popup onchange, the popup does some processing and I want to put the result on the parent window, formatted etc
ASKER CERTIFIED SOLUTION
Avatar of devic
devic
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Phrogz
Phrogz

or even better:
var obj = document.getElementById?document.getElementById('myDivID'):document.all?document.all.myDivID:null;
if (obj) obj.innerHTML='...';
Er, with the appropriate opener. before document, above.
I like the way of doing a making a function with
opener.function(var)
although that only works if the parent window has a function in it.
need a simple way of doing it so it will work from for any parent window so the opened doc can modify the parent.
:-)
I like the way of doing a making a function with
opener.function(var)
although that only works if the parent window has a function in it.
need a simple way of doing it so it will work from for any parent window so the opened doc can modify the parent.
:-)