The question says it all. I tried this code, but what happens is it closes the newly opened window instead of closing the current window where this code is being placed in.
<a href="javascript:void(0);" onClick="window.close;window.open('http://somesite.com', 'SomeWebsite', 'width=800,height=700,menubar=no,status=no');">
try me :D
</a>
I want to close the window where this code was in. and open the new window with the said parameters. thanks a lot in advance