Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created April 12, 2011 21:05
Show Gist options
  • Select an option

  • Save AutomatedTester/916410 to your computer and use it in GitHub Desktop.

Select an option

Save AutomatedTester/916410 to your computer and use it in GitHub Desktop.
<html>
<head>
</head>
<body>
<input id=ty type=text>
<div id=replication>
</div>
<script type="text/javascript" src="task1.js"></script>
</body>
</html>
typs = document.getElementById("ty");
replicate = document.getElementById("replication")
var replicat = function(e){
replicate.innerHTML = typs.value;
}
typs.addEventListener("keyup", replicat, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment