View Single Post
  #1 (permalink)  
Old October 29th, 2004, 10:10 AM
benburrows benburrows is offline
Registered User
Join Date: Jan 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read HTML comments with Javascript

Does anyone know how to read HTML comments with javascript?
ie. I have a section in my HTML like
<div id="test">
Some words

I want to get "some words" into a javascript variable.
I need this to be cross browser compatable.
I have read books and looked on the net and I think what I want is possable but I cannot make it work.