Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add web page to a string? 2

Status
Not open for further replies.

Mojojojo

Programmer
Jun 25, 2001
11
US
I am trying to add the contents of a web page to a string. I can add the <title> and other tags using document.title etc., but how can I grab the whole page?

I have tried document.documentElement; which should give me the entire page as an object, but I have been unable to place it in a string.

Any ideas?

I could use XMLHTTP, but would rather use javascript.

Thanks,

Joe
 
hie, may be this is what u're lookin for? (ie only)
object.innerHTML, object.outerHTML, object.innerText, object.outerText???

example: <div id=nnn>...</div>(it's only a example, there might be whatteva u want)
then

var object=document.all.nnn
var str=object.innerHTML
alert(str)


regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top