Solved

Access Div from JavaScript

Posted on 2000-04-10
1
309 Views
Last Modified: 2010-04-09
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 ?
0
Comment
Question by:gilad111397
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 50 total points
ID: 2701205
Check if helps

if(IE){
    x1.style.property = value;
}else if(Nav){
    document.x1.property = value;
}
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now