PHP is a server side and not client side so you'll have problems finding out information about the client other that what is sent in the headers to the server.
The simpliest way would be to call it into the script.
like
document.write("file.php?top="+top.name+"&window=" +window.name);
and then just have file.php look at the values and produce that, also I doubt that javascript will work, its not exactly my forté
|