We can take
Textarea example:-
<script language=javascript>
function resize_element()
{
document.form1.txt_comment.style.height'= '550px'
document.form1.txt_comment.style.width = '450px';
}
</script>
<TextArea style = "width:350px; height: 350px" name = "txt_comment"></TextArea>
<input type = button value = "Resize" onclick = "javascript:resize_element();">