supports PHP?
PHP is server-side. Has nothing to do with the browser.
If you mean supports javascript then try any old if (!object.method) { return False; } type thing with javascript. If no javascripty then the function will return false. (ie. object.method is not supported)
You would probably want to get a little more detailed about that though... not sure what kind of javascript you may be writing over there.