Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Get Page Markup

Get Page Markup

Scheduled Pinned Locked Moved Web Development
htmljavascripttoolshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ASPnoob
    wrote on last edited by
    #1

    Hi all, if I want to dynamically grab the markup of my page after making changes to the DOM using javascript how would I go about it. I know that there are tools out there for viewing the DOM of a page after it has been modified using javascript but I would like to actually grab the new DOM and save it dynamically using code. Thanks in advance for your help.

    G 1 Reply Last reply
    0
    • A ASPnoob

      Hi all, if I want to dynamically grab the markup of my page after making changes to the DOM using javascript how would I go about it. I know that there are tools out there for viewing the DOM of a page after it has been modified using javascript but I would like to actually grab the new DOM and save it dynamically using code. Thanks in advance for your help.

      G Offline
      G Offline
      Graham Breach
      wrote on last edited by
      #2

      You can use outerHTML[^] and innerHTML[^] to get the HTML code for a DOM element and its descendants. I'm not sure what you mean by "save it dynamically" though - post it back to the server?

      A 1 Reply Last reply
      0
      • G Graham Breach

        You can use outerHTML[^] and innerHTML[^] to get the HTML code for a DOM element and its descendants. I'm not sure what you mean by "save it dynamically" though - post it back to the server?

        A Offline
        A Offline
        Alexhudson
        wrote on last edited by
        #3

        Mark up easily makes your web page to be recognized and understood by search engine. On-page mark-up helps search engines understand the information and it is easier for web-masters to decide on a mark-up schema and get maximum benefits for their website design service site

        website design service | affordable website design

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups