{I+=codeWee;}
[Javascript] How to use Tab key in Textarea
<script> 
function useTab(el){ 
    if(9==event.keyCode){ 
        (el.selection=document.selection.createRange()).text="\t"; 
        event.returnValue=false; 
    } 
} 
</script> 

<textarea cols=40 rows=10 onkeydown="useTab(this)"></textarea> 
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.