<body οnlοad="goTop()">
function goTop() {
if (window.top.dialogArguments) {
window.top.dialogArguments.location = window.location;
window.top.returnValue = false;
window.top.close();
} else if (window.top.opener) {
window.top.opener.location = window.location;
window.top.close();
} else if (window.top != window.self) {
window.top.location = window.location;
}
}