Regarding the document.getElementById("").style.display="Inline"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mandarchalke29
    New Member
    • Oct 2007
    • 7

    Regarding the document.getElementById("").style.display="Inline"

    Can you please tell me that document.getEle mentById("").st yle.display="In line" what does this statement will do.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by mandarchalke29
    Can you please tell me that document.getEle mentById("").st yle.display="In line" what does this statement will do.
    Javascript != Java

    Moved to Javascript forum.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      hi ...

      welcome to TSDN ...

      at the moment it will do nothing ... because the id is empty ... :) but let me explain in more detail:

      with:

      [CODE=javascript]var node = document.getEle mentById('any_i d');
      [/CODE]
      you retrieve a reference to a node in your document with the id='any_id'.

      now you may use:

      [CODE=javascript]node.style.disp lay = 'inline';[/CODE]
      to set a css-property named 'display' to the value 'Inline' ...

      kind regards

      Comment

      Working...