Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InnerText Property 1

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
US

Hi Mates,

Ok, So I've got this pop up window, and in it I want it to change the openers description,

window.opener.document.description.innerText = 'Something Different';

I've got

<div id=&quot;description&quot;>
This is a description
</div>

On the opener document, but I can't get it to work, why doesn't this work, but

window.opener.document.BgColor = 'Beige';

Works fine?

Thanks,

Tony
 
try

document.getElementById(&quot;description&quot;).innerText=&quot;now works!&quot;;

in there instead.
b2 - benbiddington@surf4nix.com
 

Alright!!!

Thanks A lot Mate,

window.opener.document.getElementById(&quot;description&quot;).innerText=&quot;now works!&quot;;

Worked like a charm!

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top