This is my Code:

```
<div onclick="window.location = photo.php"></div>

```

But the url if I click on the div is:

```
http://www.domain.com/[object%20HTMLDivElement]

```

What could be the reason for it?