View Single Post
Old 18-Oct-2007, 12:35 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: how to add a HTML string to the document using javascript

Create DIV in body. You can change innerHTML in this DIV

for example:

HTML:




your default body in HTML






javascript:

document.getElementById("divname").innerHTML = "yoyoyo
";


------------------


Anilrgowda is offline   Reply With Quote