Revision 383761326665 () - Diff

Link to this snippet: https://friendpaste.com/6w85mor3YUlmbQYTLQ53dy
Embed:
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
<html>
<head>
<title>Captcha</title>
<style type="text/css">
#captcha {
cursor:pointer;
}
#container{
width: 200px;
height: 80px;
text-align:center;
}
</style>
</head>
<body>
<div id="container">
<img id="captcha" src="/captcha" onclick="get_new_captcha()"/>
</div>
<form action="/captcha" method="post">
<p>
<input type="text" name="capCode" id="capCode"/>
<input type="submit" value="Send"/>
</p>
</form>
</body>
<script language="javascript">
function get_new_captcha(){
var d = new Date();
document.getElementById("captcha").setAttribute("src", "/captcha?" + d.getTime());
}
document.getElementById("capCode").focus();
</script>
</html>