Hello Leon!
Thanks for the long reply.
You are right. I have a special requirement from my client. The client wants to open a separate new tab, and not a pop up window. I managed this, and now I've achived to close the new also with the following code in the .htm page of my view:
<script language="JavaScript">
window.parent.parent.close();
</script>