Is there a way to view the HTML generated by JS?

Discussion in 'JavaScript' started by sllik, Oct 29, 2006.

  1. #1
    Hi, is there a tool that lets you view HTML genereated by javascript? For example if I have something like

    
    var fwrap = document.createElement('div');
    
    Code (markup):
    it will show me <div></div>
     
    sllik, Oct 29, 2006 IP
  2. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes in firefox you wrap the div in the selection and then press right click and then view selection source.
     
    Morishani, Oct 29, 2006 IP
  3. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #3
    You can also use a 'dom inspector' to see what's actually being put on the page.
     
    AdamSee, Oct 30, 2006 IP