<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Demonstration of Function allowing use of tab key in textareas - inset \t control character</title>
<script type="text/javascript" src="createTextareaKeyDownFunction.js"></script> <!-- include the JavaScript -->
</head>
<body onload="createTextareaKeyDownFunction();"> <!-- execute the function when the body has finished loading. The no argument value is coded and that will mean that a
\t control character will be inserted when you press the tab key in the textarea -->
If you press the tab key in the textarea below, a \t control character will be inserted<br>
<textarea style="width: 95%; margin-left: auto; margin-right: auto;" class="tabs_in_textarea"></textarea> <!-- this textare will be processed -->
</body>
</html>