Jump to content

[SOLVED] How Compatible is this Script?


Fluoresce

Recommended Posts

I want to use the script on this page:

 

http://www.shiningstar.net/articles/articles/javascript/dynamictextareacounter.asp

 

It enforces a character limit on textarea elements.

 

Does it look okay to you guys who know about Javascript? Is it compatible with all major browsers? Note that it's very old (2000).

Link to comment
https://forums.phpfreaks.com/topic/150670-solved-how-compatible-is-this-script/
Share on other sites

There are only a few major browsers. The only way to really know if the script will work in any browser is to test it. However, that script is fairly basic and I *doubt* there would be any problems. However, I hope you realize that you should not rely upon the JavaScript to prevent too much data from being entered. It is a nice real-time indicator to the user, but can not be relied upon because a user can turn-off javascript processign in their browser. Also, that script is not complete because it allows you to paste as much text into the field as you want. There should also be an on-blur event to process data input using the mouse.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.