www.webdeveloper.com
Results 1 to 3 of 3

Thread: javascript doubts

  1. #1
    Join Date
    Jan 2003
    Location
    Thiruvananthapuram, Kerala, India
    Posts
    27

    javascript doubts

    how to do th following so that it will work with both IE and Netdcape 6.1

    1. how to increase the height of a textbox in runtime using javascript
    2. how to change the mouse cursor in runtime
    3. how to set tab orders in textfields

    Thanking You

  2. #2
    Join Date
    Nov 2002
    Posts
    631
    Actually, all of the above can be done without using JavaScript and work best the way I will give them:



    1) To change the height of an input text box:
    <input type="text" style="height:50px;">



    2) To change the mouse cursor for an element:
    <element style="cursor:default;">

    Istead of using default which would be an ordinary arrow, you could use many others:

    wait = hourglass
    default = arrow
    pointer or hand = a pointing hand
    crosshair = two crossed lines. It looks like a target sign.
    text = the text cursor

    3) To set the tabindex of an element:
    <input type="text" tabindex="n">

    n = number from 0 to somewhere in the 320,000's. This would be the order the user would tab to the element. If one element had a tab order of 1, it would be the second element tabbed to (The first one would be the location bar -- there is no way around this). If another element had an index of 2, it would be the next one tabbed to and so on.

  3. #3
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by Zach Elfers
    2) To change the mouse cursor for an element:
    <element style="cursor:default;">

    Istead of using default which would be an ordinary arrow, you could use many others:
    The full (and correct) list can be found here
    http://www.w3.org/TR/REC-CSS2/ui.html#propdef-cursor
    // Stefan Huszics

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles