Forum Moderators: open

Message Too Old, No Replies

read body content

with out using div tag

         

prasanth

11:34 am on Jun 23, 2005 (gmt 0)

10+ Year Member



Hi i have a problem here that i have to read the entire content of e.g

<body>
xyz......
</body>

i want all the information between the two body tags in a string for a javascript funtion. probelm here is we should not use div id and then as id.innerHTML. Is there any other way

Thanks for help in advance

RonPK

12:02 pm on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



document.getElementsByTagName('BODY')[0].innerHTML

prasanth

12:39 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



Thank you very much. It is working fine.