this is a simple question. In PHP, when you want to know what's inside an array, you say :

```
print_r ($array);

```

But how do you do it in Javascript?? When I try to print the value of "overlay", I get "object Object"...

```
listener_rightclick = GEvent.addListener(map, 'singlerightclick', function(point, src, overlay){
    if (overlay){
        document.getElementById('test').innerHTML = 'cliqué ! ' + overlay;
        GEvent.removeListener(listener_rightclick);
        map.removeOverlay(overlay);
        ecouter_clicks_pts();
    }
    //document.getElementById('pt_latlng').innerHTML = 'xxxxxxxxxxxx: '+overlay;
});

```