|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Adding to div section
I am having trouble adding to a div section rather than replacing all of it. Basically I want to add more items to my page, but each time I user write(), the entire page goes away, and I am left with only the single line from the write.
When I do this: document.all[id].document.write('test'); View Source = test All buttons are gone, everything gone. My entire document goes away, and is replaces by only "test". What I want, is to ADD to what currently exists. ??? wtf ? john@mccarthy.net |
|
#2
|
||||
|
||||
|
Try using the innerHTML() method, instead of write()
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Adding to div section |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|