Real quick...
1. How can you get the width of a document? I tried document.width and it returned undefined...
2. are anchor tags listed in an array like links?
example : document.anchors[x]
Thanks for your time
:)
Printable View
Real quick...
1. How can you get the width of a document? I tried document.width and it returned undefined...
2. are anchor tags listed in an array like links?
example : document.anchors[x]
Thanks for your time
:)
1. Not sure, but try document.body.width.
nope, sorry. I still get undefined
But thanks
:)
To your second question:
document.anchors[] is an array of anchor objects from zero to anchors.length-1
Your first question:
I don't think that you can get the document width. You can get the width of the screen though. (window.screen.width)
Chris
Thanks :D
I didn't think you could get the width, but I thought I'd give it a shot.
Where abouts in Philly are you?
:)
The Northeast section...
One more bit of info...
There actually is a document.width property. It's a Navigator 4 only thing though.
Chris
;)
Thanks again. And I am in Essington.
Did come up with something:
document.body.clientWidth
return's the client width of the window, meaning the inner width. If the window resizes the value will change. I'm not sure if this is what you were after though. There is also a clientHeight property. Most likely IE only.
Essington, PA ? Short trip on 95S...:D
Chris
:D that did it!
my hat's off to you
:)
Glad I could help...:)
Chris