PHP is run on the server side and has finished executing long before the html gets sent to the browser. The server has no control over the visitor's hardware, so what you're asking for is impossible via PHP.