1. you can't. It has a fixed size and look
2. As Harris demonstrated, you have to catch it in the handler. There isn't a guaranteed way to do it on the browser side. There has been an 'accept' attribute that has been proposed some time ago, but a lot of browsers just ignore it as it is no guarantee anyway.