Like a keyboard key? Try this out:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function isShifted(e){
var e=e? e : window.event;
if(e.keyCode==16)
isShifted.yes=e.type=='keydown'?1:0;
}
document.onkeyup=document.onkeydown=isShifted;
</script>
</head>
<body>
<div><input type="text" id="targ"><br>
<input type="button" value="A" onclick="document.getElementById('targ').value+=isShifted.yes? this.value : this.value.toLowerCase();"></div>
</body>
</html>
Bookmarks