Skip to content

Instantly share code, notes, and snippets.

@thetekst
Created January 5, 2011 10:08
Show Gist options
  • Save thetekst/766124 to your computer and use it in GitHub Desktop.
Save thetekst/766124 to your computer and use it in GitHub Desktop.
form01
<html>
<head>
<script language="JavaScript">
function Complete()
{
var nameIdt = document.getElementById('yourName').value;
if (document.getElementById('yourName').value = true) {
document.write(nameIdt);
}
else {
document.write("ошибка");
}
}
</script>
</head>
<body>
<form name="forma">
<input type="text" name="yourName" id="yourName">
<INPUT TYPE="submit" NAME="knopka" id="knopka" VALUE="Кнопочка" onClick="Complete();">
</form>
<div id="view" style="color:red"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment