Welcome visitor
* Login
* Register
It is currently September 15th, 2019, 7:58 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Disable tab key
PostPosted: August 17th, 2009, 12:34 pm 

Posts: 27
For security purposes do you know how to dehabilitate the tab key when filling a form? You know, avoid to skeep to the next field with the tab key.


Top
 Profile  
 
  Re: Dehabilitate tab key
PostPosted: August 17th, 2009, 12:55 pm 

Posts: 57
<script type="text/javascript">
document.onkeypress = block;
document.onkeydown = block;
function block(e){
if (e.keyCode == 9){
return false;}}
</script>


Top
 Profile  
 
  Re: Dehabilitate tab key
PostPosted: August 18th, 2009, 3:25 pm 
User avatar

Posts: 61
or even better
<input tabindex="-1" /><input tabindex="-1" /><input tabindex="-1" />


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron