usa un codice javascript
http://www.html.it/javascript/tutorial/16/