Resizing the Html elements dynamically.

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 449
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();">

Comments or Responses

Login to post response