How JavaScript can read from the HTML where it is embedded ?

I need to post a text on the page in HTML and be able to read that text in JavaScript following that text to do some manipulation with it.
Any examples ?

Thanks
imalikin@stdcom.com