Use this JavaScript form to ensure that visitors do not type in HTML entries before they submit.
We have tested the code in IE7.0, Firefox2.0.0.2, Opera9.10, Netscape8.1.2 and AOL Explorer1.5. This script worked well in all platforms with no variations observed.
For your Information:
Before we begin, we feel obligated to advise you that the above form is for all intensive purposes a "Stand Alone" script. In other words, it really does not do much of anything other than what you see. In order to make it function as designed, you need to incorporate it into a valid working form. If you do not have a good Solid Knowledge of HTML coding, javascripts, forms and reconfigurations, please
"Do Not Attempt" this until you are Proficient in the aforementioned areas.
Depending on your knowledge of HTML and javascripts, this is an easy two (2) part copy and paste code that goes in both the <HEAD> section (No reconfigurations) and <BODY> section (incorporated into a working form) of your document. It has no real reconfigurations in this section other than to change the size of the textarea itself. See below where and howto.
<form action="some-script.cgi" name=form onSubmit="return Check()">
<textarea cols="50" rows="6" name="text"></textarea>
<br>
<input type="submit" value="Submit Entry">
</form>
Define Cols and Rows
- cols="50" This denotes how wide from side to side the textarea will be
- rows="6" This denotes how high from top to bottom the textarea will be
We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our [ FAQ ] and if you can't find the answer there, [ contact us ].
[ Get Code Here ]
[ Rate This Page ]