Hi i m trying to close the window in firefox 2.0 using code

window.open(’’, ’_parent’,’’; }
window.close();

i had also tried using code as

var myWin = window.open('', '_parent','');
myWin.close();

but it doesn't seems to work.

Please help me.