Web Analytics Made Easy -
StatCounter Event handlers in Firefox - CodingForum

Announcement

Collapse
No announcement yet.

Event handlers in Firefox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Event handlers in Firefox

    Hello all!
    I have a problem: I'm writing script to validate maxlength in textarea, and I use
    event.returnValue method (or just write return false), but it works only in IE.
    What should I do in order to make it work in Firefox or other browser?
    Thanks

  • #2
    Maybe somthing like this?
    var textAreaLength = document.getElementById(object).value.length;
    if (textAreaLength > x)…

    Comment


    • #3
      event.preventDefault() in DOM2 Events-compliant web browsers.
      jasonkarldavis.com

      Comment

      Working...
      X