Re: window.opener.getElementById('myDiv').innerHTML ... doesn't work!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: window.opener.getElementById('myDiv').innerHTML ... doesn't work!

From: <AbstraktMethodz@gmail.com>
Date: Thu Apr 13 2006 - 22:37:44 CEST

Richard Cornford wrote:
> Giakko wrote:
> <snip>
> > THE MAIN WINDOW:
> > <div id="'myDiv'"></div>
> <snip> ^
> That apostrophe makes this ID different form the one you are trying to
> look up.
>
> > window.opener.getElementById('myDiv').innerHTML='TEST SUCCEDED!!';
>
> The - opener - is a window object and does not have a getelEmentById -
> method. Use - opener.document.getElementById -.
>
> Richard.

also, innerHTML is IE only
Received on Mon May 1 04:59:08 2006