This is no longer an entirely HTML question once you start using things like:
That's javascript. And generally javascript cannot close() anything that wasn't opened using the javascript open() method. This may or may not be a factor in one or more of the scenarios you describe in one or more of the browsers you're testing in.
It's possible that it could be all HTML though. If everything you are trying to do happens when you click on a link that loads a page (frameset or single page) and you just want that to take over the current tab or window:
HTML Code:
<a href="whatever.htm" target="_top">Whatever</a>
will do the trick, no javascript required.
Bookmarks