Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
<script> 
  window.onload=function(){makeCaretInvisible('test')}; 
</script>
</head>
<body>
  
   <asp:TextBox style="height:200px;width:200px;" id="test">Edit     lkjlj me!</asp:TextBox>
  
  <input type="text" style="cursor :default" />
  
</body>
</html>
 
function makeCaretInvisible(textboxId) {
  var inputBox = document.getElementById(textboxId);
  var outputBox = inputBox.cloneNode(true);
  outputBox.id=outputBox.name='';
  outputBox.onclick=function(){
    inputBox.setSelectionRange(outputBox.selectionStart, outputBox.selectionEnd);
  };
  inputBox.onkeyup=function(){
    outputBox.value=inputBox.value;
  };
  inputBox.parentElement.insertBefore(outputBox, inputBox);
  inputBox.style.position='absolute';
  inputBox.style.top='-10000px';
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers