Clear Text

hye to all, How to clear all the text box and text area in the form When pressing ENTER key using YII…? And how to redirect the page in ENTER key?

Please help me out!!!!!!

you can achieve all that with javascript - but what is the purpose of that?