Hi!
If I understand you correctly, you need to run a specific Javascript function when the page is loaded.
Just do this:
In the BODY tag, put this:
<BODY <?php print GetCurrFunction(); ?>>
function GetCurrFunction()
{
global $func;
if (empty($func)) $ret = '';
else $ret = 'ONLOAD="'.$func.'"';
return $ret;
}
$func is the name of the function passed through the query string.
The above PHP function will need to also verify the name of the function passed to the script since someone may type whatever he wants or something will happen to the URI data and the page will behave unexpectedly.
Of course, as many have already pointed out, it is impossible to control the browser from server side, but you may use this to achieve what you need.
Best,
Stas