jQuery function to close a window

jQuery function to close a window


jQuery is awesome! You can call one method to do something and it
will work in all modern browsers. But recently i came it across and
issue where window.close() javascript method doesn't work for all
browsers, particularly IE and Firefox. Can you add a simple method to
be able to close a window that will work in all browsers?