Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <textarea id="field">This is some text.</textarea>
  <iframe name="target"></iframe>
</body>
</html>
 
textarea, iframe {
  display:block;
  width:300px;
  height:100px;
  margin:3px;
  padding:3px;
  border:1px solid #CCC;
}
 
var iframe = window.target.document;
$('#field').keyup(function(){
  $(iframe).find('body').html(this.value);
});
Output

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

Dismiss x
public
Bin info
dmi3ypro
0viewers