Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Get html from an element, pass to new window?

    How can I grab the html from an object in the page so I can pass it to a new window?

    I can the reference to an object by ID:

    document.getElementByID( “myPanelContainingSomeTables” )

    But I’m not sure how to get the HTML contained in that element. If I can get that, than I can store it in a variable and pass that string to the new window.


    Thanks for any help!

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try using innerHTML

    eg: document.getElementByID( “myPanelContainingSomeTables” ).innerHTML

    .....Willy

  • #3
    New Coder
    Join Date
    Mar 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •