Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script>
    function checkKeyboard(ob,e){
        re = /\d|\w|[\.\$@\*\\\/\+\-\^\!\(\)\[\]\~\%\&\=\?\>\<\{\}\"\'\,\:\;\_]/g;
      a = e.key.match(re);
      if (a == null){
        alert('Error: none Latin');
        ob.val('');
        return false;
      }
      return true;
    } 
    
    $(document).ready(function(){
      $("#fname").keydown(function(e){     
        if (!checkKeyboard($(this),e)){
            return false;
        }
      });      
    });
    
    
  </script>
</head>
<body>
  <input type="text" id="fname">
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers