This page demonstrates the TabEntry script that allows the user to enter tab entries in textarea elements. It overrides the typical default browser behavior in which pressing tab moves focus to the next selectable element.
Add the three required JavaScript files to your page's head element, as follows:
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="selrange.js"></script>
<script type="text/javascript" src="tabentry.js"></script>
Use the following code to apply tab entry to a text area:
<script type="text/javascript">TabEntry.enable(textareaID, tabEntryCheckboxID);</script>
textareaID is the ID of the textarea element. The optional tabEntryCheckboxID
argument is a checkbox that lets the user select whether or not the tab key should insert tab characters
into the text.
Refer to http://dev.castwide.com for more information.