I was wanting to resize a text area and put text into it using the mouseover event, and was wondering how to do so....
Printable View
I was wanting to resize a text area and put text into it using the mouseover event, and was wondering how to do so....
Try this out:
<html>
<head><title></title>
<script>
function getBig(){
document.frmText.txtInfo.rows = 10;
document.frmText.txtInfo.cols = 20;
}
function getNormal(){
document.frmText.txtInfo.rows = 4;
document.frmText.txtInfo.cols = 10;
}
</script>
</head>
<body>
<form NAME = "frmText">
<textarea ROWS = "4" COLS = "10" NAME = "txtInfo" ONMOUSEOVER = "getBig();" ONMOUSEOUT = "getNormal();"></textarea>
</form>
</body>
</html>
Chris