Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
document.anchors returns 0?
Old 08-10-2006, 01:33 PM document.anchors returns 0?
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
I'm trying to run through all the links on the page. I first tried document.anchors[x] to target each anchor in a loop, but document.anchors.length is returning 0, even when there are plenty of links on the page. I even get 0 when going to google.com and evaluating document.anchors.length from the FireFox JS console.

I have reverted to using document.getElementsByTagName("a") to create the collection, but I'm not sure what I was doing wrong. Has document.anchors been deprecated? Thanks, just looking for a reason for the original problem.
funkdaddu is offline
View Public Profile Visit funkdaddu's homepage!
 
 
Register now for full access!
Closed Thread     « Reply to document.anchors returns 0?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07781 seconds with 12 queries