How to close current window in chrome and FF? I try to close window using following native JavaScript code : 

```
win = top;
win.opener = top;
win.close();

```

and

```
window.open('', '_self', '');
window.close();

```

and

```
$wnd.close(); 

```

All dont work in Chrome and FF. In IE7 it work (but not with all code remembered above).