Hi all,

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.

index.php
window.onload=function(){
doit();
doit1();
doit2();
}

function loadpage(url content){
}

<a href="javascript:loadpage('photos.php', 'content');"> Click here </a>

then when photos.php is called, the onload event of this page will do some stuff in this recently loaded page.

Thank you for your reply, and i would appreciate too much who can send me examples

Regards

Felipe