Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari and TextArea Events



Hi, y'all.
 
I have a textarea defined with the following onkeypress event, as a method
to enforce a maximum number of characters:
 
onkeypress="if (this.value.length > 39) {return false;}"
 
Not only does this not work, it kills all other events for this textarea.
It refuses to work only in Safari, however.  The code works like a charm in
all versions of IE for Windows and Mac.
 
Why doesn't it work in Safari?
 
 
Robert Sewell
Senior PC Applications Programmer
SESAC, Inc.
55 Music Square East
Nashville, TN 37203
 


CONFIDENTIALITY NOTICE:  This e-mail transmission, and any documents, files,
or other e-mail messages attached to it, may contain confidential
information that is legally privileged.  If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or use of any of the information contained in or attached to
this message is STRICTLY PROHIBITED.  If you have received this transmission
in error, please immediately notify the sender via e-mail or by telephone at
615.320.0055 and destroy the original transmission and its attachments
without reading them or saving them to disk.  Thank you 
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.