I am using top.window.close() to close the parent window but it is not working in Mozilla firefox.Please suggest alternatives. The above code is working fine for IE6.
Note that you can tell Firefox to allow window.close by setting the dom.allow_scripts_to_close_windows to true in about:config.
window.close
dom.allow_scripts_to_close_windows
true
about:config
The ability to use window.close is further discussed in bug 190515.