What can Diigolet do but Bing and Google Image search cannot do?

Close their frame and remember the page you were on.

Background:
I am making a music player for a client that will stay on the page no matter what page he is going to and not be interrupted by the user's browsing. I decided to implement frames. Now the hard thing is how to close the frame the music player is on without disturbing the page that the user was on. I have tried a few little things with no success at all.

Request:
A javascript code in or along side of a link html tag. Such as...

Code:
<a href="javascript:CODE" target="_top">[X]</a>
or

Code:
<script>
function closeframe() {
CODE
}
</script>
<a href="javascript:closeframe()" target="_top">[X]</a>

Please help. Thanks.