Code for closing a Window

This javascript code is mainly used for closing a popup window.
onclick='self.open=null;
self.close();
return false;'>
close
Thank you spending your time here.
If possible you; can leave some comments or suggestions.
Thanks a lot once again.
Google Search
Disclaimer and Copy Right