By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,397 Members | 1,445 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,397 IT Pros & Developers. It's quick & easy.

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

P: 7
Can you please tell me that document.getElementById("").style.display="Inline" what does this statement will do.
Oct 9 '07 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
Can you please tell me that document.getElementById("").style.display="Inline" what does this statement will do.
Javascript != Java

Moved to Javascript forum.
Oct 9 '07 #2

gits
Expert Mod 5K+
P: 5,390
hi ...

welcome to TSDN ...

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

with:

Expand|Select|Wrap|Line Numbers
  1. var node = document.getElementById('any_id');
  2.  
you retrieve a reference to a node in your document with the id='any_id'.

now you may use:

Expand|Select|Wrap|Line Numbers
  1. node.style.display = 'inline';
to set a css-property named 'display' to the value 'Inline' ...

kind regards
Oct 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.