Results 1 to 6 of 6

Thread: Get Page Source **Resolved**

  1. #1

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    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.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Should those be square brackets after items? Is item an array?

  4. #4

    Thread Starter
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    Originally posted by JoshT
    javascript:alert(document.getElementsByTagName('html').item(0).innerHTML);
    works in Phoenix 0.5.
    That works great! Thank you
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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
  •  



Click Here to Expand Forum to Full Width