<a href="javascript:window.close()">close this window</a>

This short line which was used in many scripts is now causing errors in Foxfire and IE. Please help me with what I need to change. TIA