Resizing of the TextArea on border or scrollbar

Discussion in 'HTML' started by Nick, May 1, 2008.

  1. Nick

    Nick Guest

    Hi,

    I have created a html page from Java and I have added a .js file which
    can resize a TextArea inside the html on mousedown event.

    <script src="C:\temp\resize.js"> </script>
    <table> <tr><td onmousedown="javascript:resize('trinput',event)">
    <TEXTAREA NAME="input" id="trinput" COLS=40 ROWS=60>
    my textarea here
    </TEXTAREA>
    </td>
    </tr>
    </table>

    But now when I click on amny of the area of tes TextArea the textarea
    starts resizing.

    Can I do something like only when the mouse is down over the borders
    of the <td> or scrollbars of the textareas only then resize script
    should get called ?

    Please help !

    Cheers
    Nick
     
    Nick, May 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?cGF0cmlja2RyZA==?=

    1) textarea firefox scrollbar 2) input check border 3) datagrid si

    =?Utf-8?B?cGF0cmlja2RyZA==?=, May 14, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    444
    =?Utf-8?B?cGF0cmlja2RyZA==?=
    May 14, 2007
  2. Nick
    Replies:
    1
    Views:
    376
    Fernando Rodriguez
    May 1, 2008
  3. Nick
    Replies:
    0
    Views:
    298
  4. Nick
    Replies:
    0
    Views:
    125
  5. Nick
    Replies:
    1
    Views:
    134
    Thomas 'PointedEars' Lahn
    May 1, 2008
Loading...

Share This Page