[Phpwm] need a bit of javascript help

Greg Jones greg.jones at gmail.com
Mon Nov 27 18:38:05 GMT 2006


>
> The document.write(h); line writes the data within its own <div> tag just
> fine, and I can force a write to the popup using the <input> button  
> onclick
> bit at the end - but what I can't get my head around is why the
> "document.getElementById("Text").innerHTML = h;" doesnt just write it  
> into
> the popup box as it gets to it.


At the time the line is executed, the div with id 'Text' doesn't exist. if  
you wrap the line in
window.onload = function() {
   document.getElementById("Text").innerHTML = h;
}


things might work.

Greg

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the Phpwm mailing list