|
-
Jan 29th, 2003, 11:26 AM
#1
Thread Starter
Frenzied Member
Get Page Source **Resolved**
Is there a way to get the entire source of the current page? I know I can do document.body.innerHTML to get everything within the body tag, but I need everything from <html> to </html>. I need to capture the source of the page, and put it in a hidden inputbox of a popup window.
Last edited by blindlizard; Jan 29th, 2003 at 03:42 PM.
-
Jan 29th, 2003, 11:29 AM
#2
Black Cat
javascript:alert(document.getElementsByTagName('html').item(0).innerHTML);
works in Phoenix 0.5.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jan 29th, 2003, 11:50 AM
#3
Frenzied Member
Should those be square brackets after items? Is item an array?
-
Jan 29th, 2003, 12:20 PM
#4
Thread Starter
Frenzied Member
Originally posted by JoshT
javascript:alert(document.getElementsByTagName('html').item(0).innerHTML);
works in Phoenix 0.5.
That works great! Thank you
-
Jan 30th, 2003, 11:59 AM
#5
Black Cat
Originally posted by Rick Bull
Should those be square brackets after items? Is item an array?
No, it is a "method to retrieve a node by index from a node list."
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jan 30th, 2003, 02:40 PM
#6
Frenzied Member
Ah right OK. I'll let you off then
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|