Initial commit.

This commit is contained in:
Achim D. Brucker 2015-06-20 18:41:16 +02:00
parent 073b088b6b
commit 8ad16053ab
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<!-- shows how the input can be executed by eval -->
<html>
<head>
<title>Test Eval </title>
<script type="text/javascript">
function validate () { // this method is called @ submit
var nerd =document.getElementById("in").value;
alert(document.getElementById("in").value);
eval(nerd); // anykind of string can be executed
}
</script>
</head>
<body>
<form name="test" action="" >
Name: <input type="text" name="eingabe" id="in"><br>
<input name="submit" value="submit" type="button" onClick="validate()">
</form>
</body>
</html>