I have seen several solutions and scripts for the onload event.
But i am not sure if i understood it or not, but most of them shows onload events for the same page.
In my case, i have a problem. The top page(the main one), calls another by ajax. How can i execute the onload event for lets say index.php , and when i call photos.php (inside a div of index.php), call the onload event of the page photos.php.