View Single Post
  #2 (permalink)  
Old October 29th, 2004, 11:50 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ben,

You can use the innerHTML property of the <div> tag like this:

alert(document.getElementById('test').innerHTML);

You'll need to do some string parsing to get rid of the comment tags, but that shouldn't be too hard.

HtH,

Imar
Reply With Quote