window.open->getElementById.open

Discussion in 'JavaScript' started by Kofgarter, Feb 2, 2009.

  1. #1
    Hi everybody!
    Is this possible to open the document, not in a new window, like this - javascript:window.open(...)
    but in the same page, in div, which we will take with getElementById.

    I mean: document.getElementById('name_of_div').open(...)
     
    Kofgarter, Feb 2, 2009 IP
  2. Kofgarter

    Kofgarter Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have just done it with iframe.
     
    Kofgarter, Feb 2, 2009 IP