<a name="whatever">
</a>

document.whatever

I think that's how it goes. If "name=" doesn't work, try "id=".


Or try:

<div id="whatever"> </div>

If you still can't get it working, give some more detail on what exactly you want to do, and I'll take another look at it.