-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.htm
More file actions
45 lines (37 loc) · 883 Bytes
/
test.htm
File metadata and controls
45 lines (37 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
<head>
<style type = "text/css">
input
{
color: white;
background-color: 444444;
width: 100%;
border: 0px;
}
input:focus
{
outline:none;
}
</style>
<script type="text/javascript">
function eventHandler(e) {
var evt = e || window.event;
//writeData(evt.type);
if(evt.keyCode == 13)
{
alert(document.getElementById("in").value);
document.getElementById("in").value = ""
}
return document.defaultAction;
}
document['onkeydown'] = eventHandler;
</script>
</head>
<body style="background-color:444444; padding-left: 60px; padding-top: 50px;" onLoad="document.getElementById('in').focus();">
<div style="font-family: Andale Mono, monospace; color: white; font-size: 30px;"></div>
<INPUT type="text" id="in" name="firstname" value = "">
hello
<code id="lol">jutest <LOL>a test
</code>
</body>
</html>