HTML DOM tabIndex Property
Complete Textarea Object Reference
Definition and Usage
The tabIndex property sets or returns the tab index for a text area.
The tab order defines the order the elements appear if you navigate the page
using the "tab" button on the keyboard.
Syntax
textareaObject.tabIndex=number
|
Example
The following example alerts the tab index of different form fields:
<html>
<head>
<script type="text/javascript">
function checkTab(x)
{
alert(x.tabIndex)
}
</script>
</head>
<body>
<form>
<textarea id="txt1" tabindex="1" onclick="checkTab(this)">
Hello world....This is a text area
</textarea>
<input id="txt2" type="text" tabindex="2" onclick="checkTab(this)">
<input id="txt3" type="text" tabindex="3" onclick="checkTab(this)">
</form>
</body>
</html>
|
Complete Textarea Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|