Access Div from JavaScript

I have the following def -
<style type="text/css">
  #x1{position:absolute;top:000px;left:00px;z-index:1;visibility:visible}
</style>

then there is -
<div id=x1>
...
</div>

and I'm trying to access x1 with -
document.all.x1.[property]
within javascript but it doesn't work.

Any idea ?
gilad111397Asked:
Who is Participating?
 
BhargavaConnect With a Mentor Commented:
Check if helps

if(IE){
    x1.style.property = value;
}else if(Nav){
    document.x1.property = value;
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.