Event handlers in Firefox

Discussion in 'JavaScript' started by irida, Sep 29, 2006.

  1. #1
    Hello all!
    I have a problem. When I'm writing a script to validate maxlength in the textarea element, I use event.returnValue=false (or just return false).
    But it works only in IE. How should I change it to work in Mozila\firefox or any other browser.
    Thanks a lot!
     
    irida, Sep 29, 2006 IP
  2. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi!

    Just use return false; in your event handler function.

    Regards
    - P
     
    penagate, Sep 30, 2006 IP
  3. irida

    irida Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I've tried, but it doesn't work either
     
    irida, Oct 4, 2006 IP