You can use this: <a href="#" style="float:right; onclick="new Effect.ScrollTo('yukari'); return false;">TOP</a> Code (markup):
Gary has it 'kind of' right, though really I'd not put the id on the body element and instead target some other id at the top of the code since usually there's SOME wrapper you could hit. But Christ, what's up with the javascript for nothing bullshit? Javascript for that is NOT the answer. Well, at least we had no shmucks presenting some asshat jquery script as an answer.... YET.
Yeah, but I knew <body> was at the top. I couldn't know what other element might work. That's the gods' truth. cheers, gary
Because it's more code than needed, doesn't work on most handhelds, and provides no graceful degradation for the people who tell you where to shove .js. Using onclick for something HTML ALREADY DOES is just stupid. It ranks right up there with the mm_ javascript from adobe or methods like prototype on the "really **** stupid" javascript for nothing scale.
From the response after yours by Prdomain one can assume nobody is listening to the good advice, and just want to sleaze it out any old way... *SIGH*. In other words business as usual.
Poor dogs n things : ) Well, at least you can switch to HTML on your pages now : ) I block scripts myself. They make me feel dirty. You could almost just do <a href="#">back to top</a> except there were some browsers who didn't by default go back to the top of the page... but a lot of them do.
You're right Poes, Looks like mr. Smuck is right, for a change. When I have some time I'll remove that horrible piece of unnecessary crap from my site and replace it with decent html.