Contents of My Nook on the WebHome Page
Analog LOGFORMAT for MyDomain Sites
Replacement Tips For Radio Shack 64-2184 Soldering Station
How to to allow tabs to be used a <textarea>
Site Change Log
The following are links to other sites. They will open in a new window or tab:
My Wife's Business Named Sew-lutions
Sugarcat Simon's Niche on the Web about Feline Diabetes
Online Etymological Dictionary
Web site tracking a "person" through thirty three companiess in 8 states
Bob Novell's Nook on the World Wide Web
How to allow the use of tabs in a textareaPage Last Update: June 17, 2016
Update: Created the page
This page provides demonstrations of a function I have written to allow the use of tab keys in <textarea> tags for text formatting.
Normal behavior when you press the tab key when the cursor is in a <textarea> is for the cursor to be moved to the next field on the page - input field, button, address bar, etc..
To allow the use of the tab keys for formatting in a <textarea> it is necessary to change the default behavior the tab key in a <textarea>
The function created will prevent the default action of the tab and instead insert "something" based upon how you code the function call on the <body> tag.
Below are two examples you can try out. Try them, put your cursor in the textarea and press the tab keyThe examples are separate web pages in iframes. Per web page, you can only specify what is to be insert in place of the tab just once. You cannot, at least now, specify different characters to be inserted in different <textarea> tags.
Thus, to show you both examples, I had to code separate web pages and I'm displaying them here, above, in iframes.
To implement this function:
Here is the HTML for the example that inserts a tab control character ( \t) when the tab key is pressed.
Here is the HTML for the example that inserts 5 blanks when the tab key is pressed.
Note - You are free to use this but you must leave the copyright statements in the file, as they are, to provide just credit to me for creating these files and code.
NONE, nothing at all, Copy the files and use them if you want but you are on your own.