Skip to content

Instantly share code, notes, and snippets.

@theskillwithin
Created May 9, 2018 04:06
Show Gist options
  • Save theskillwithin/8dc63074f14a8a9bfad5980a045dbe62 to your computer and use it in GitHub Desktop.
Save theskillwithin/8dc63074f14a8a9bfad5980a045dbe62 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Формы</title>
<script type="text/javascript">
//unction Na(){}
number = function() { this.hasNumber == number }
function YayyyNumber() { if(document.getElementById('numberio').value==number) document.getElementById(text).style.display=block }
//w Bird().walk() // в обоих случаях
//new Rabbit().walk() // this будет указывать на текущий объект
</script>
</head>
<body>
<form>
<p>
<input type="text" name="numberio" width="200" >
<input type="button" onclick="YayyyNumber()" >
</p>
<div id="text" style="display: none; color: #000;">THIS IS NUMBER</div>
</form>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment