How to open and close a window?

How do i use java script to close the current webpage and evoke another one?