[thelist] Is it possible to output a JavaScript variable directly to the body content after the page has been loaded?

Paul Bennett paul at teltest.com
Mon Jan 5 15:32:16 CST 2004


SED wrote:

>I want to output a message, based on a user choose via a form menu, directly
>to the body content (i.e. between the <p></p>), but I haven't found any way
>to do it. I know I can do it through alert and <input>. But if I use
>document.write('message') the message won't update, after the page was first
>loaded.
>
you can use a hidden div, then write the variable into the div on an 
event (mousedown, click, whatever) and change the display to block, thus 
displaying the data in the page after it has loaded.


-- 
 ------------------------------
	Paul Bennett						
	Internet Developer				
	Teltest Electronic Design		
 ------------------------------			
Email: paul at teltest.com				
Phone: 64 4 237 4557					
Web: http://www.teltest.com		
Wap: http://wap.teltest.com			




More information about the thelist mailing list