Well ther isn't one. How could there be? The window is on the client and php is on the server. (and if you'd just said that in the first place we might have got somewhere).
There are only 3 ways to pass information to the server, and it has to be passed, GET POST & COOKIE. Servers can't just go invading peoples machines. Even malicious script and websites have to install a Trojan or Spyware that passes the info to the server, the server can't just reach out and grab it. So if you know that much javascript then use javascript to grab the info, but it will still have to get, post, or cookie it to the sever.