joelwenzel
Programmer
- Jun 28, 2002
- 448
I have this code and it is not working. Anyone know why? I'm using ASP.NET and it shows getAttribute as having the following arguments...getAttribute(strAttributeName, [lFlags], AttributeValue) which doesn't make any sense to me. Anyway, here is the code I was trying to use.
<script type="text/javascript" language="JavaScript">
alert( document.getElementById('bgImage1').getAttribute('id'));
</script>
...
<div id="bgImage1" style="position: absolute;width:1000px;height:432px;left:0px;top:50px;">
<img src="Images/bliss top.bmp" alt="" width="100%" height="100%" />
</div>
<script type="text/javascript" language="JavaScript">
alert( document.getElementById('bgImage1').getAttribute('id'));
</script>
...
<div id="bgImage1" style="position: absolute;width:1000px;height:432px;left:0px;top:50px;">
<img src="Images/bliss top.bmp" alt="" width="100%" height="100%" />
</div>