| <textarea name="area1" id="area1" rows="5" cols="40"> |
| if (window.accessibilityController) { |
| var result = document.getElementById("result"); |
| var area1 = document.getElementById("area1"); |
| var textArea = accessibilityController.focusedElement; |
| textArea.setSelectedTextRange(4,0); |
| result.innerText += "(4,0) = " + textArea.selectedTextRange + "\n\n"; |
| textArea.setSelectedTextRange(8,2); |
| result.innerText += "(8,2) = " + textArea.selectedTextRange + "\n\n"; |
| textArea.setSelectedTextRange(100,0); |
| result.innerText += "(100,0) = " + textArea.selectedTextRange + "\n\n"; |