| Sign In/My Account | View Cart |
| Article: |
Make Internal Links Scroll Smoothly with JavaScript | |
| Subject: | Anchor object | |
| Date: | 2005-09-15 02:04:10 | |
| From: | aquarius | |
|
Response to: Anchor object
|
||
| The reason I didn't use document.anchors is that it's a DOM0 thing; I try and avoid DOM0 things because they don't always exist, depending on how strict the browser is and so on. It might turn out that I'm wrong about document.anchors specifically, but document.getElementsByTagName will always work and that's the only function I need to learn, rather than document.links and document.forms and all the other DOM0 things. | ||