Click to See Complete Forum and Search --> : two questions...
crptcblade
Jul 4th, 2001, 07:38 PM
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
:)
JoshT
Jul 5th, 2001, 12:55 PM
1. Not sure, but try document.body.width.
crptcblade
Jul 5th, 2001, 10:17 PM
nope, sorry. I still get undefined
But thanks
:)
Psyrus
Jul 6th, 2001, 08:40 PM
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
crptcblade
Jul 6th, 2001, 08:42 PM
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?
:)
Psyrus
Jul 6th, 2001, 09:17 PM
The Northeast section...
One more bit of info...
There actually is a document.width property. It's a Navigator 4 only thing though.
Chris
crptcblade
Jul 6th, 2001, 09:19 PM
;)
Thanks again. And I am in Essington.
Psyrus
Jul 6th, 2001, 10:01 PM
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
crptcblade
Jul 6th, 2001, 10:05 PM
:D that did it!
my hat's off to you
:)
Psyrus
Jul 6th, 2001, 10:15 PM
Glad I could help...:)
Chris
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.