-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.html
29 lines (29 loc) · 1.35 KB
/
chat.html
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
<html>
<meta http-equiv="pragma" content="no-cache" />
<head>
<script src="chat.js"></script>
</head>
<body>
<div>
<script>
function do_ok() {
var from_id = document.getElementsByName("from_id")[0];
var to_id = document.getElementsByName("to_id")[0];
document.getElementsByName("from_user")[0].value = from_id.value;
document.getElementsByName("to_user")[0].value = to_id.value;
alert("From: " + from_id.value + ", To: " + to_id.value);
}
</script>
<label for="from" style="height:5%">From:</label>
<input type="text" name="from_id" style="height:5%" value="" />
<input type="hidden" name="from_user" value="" />
<label for="to" style="height:5%">To:</label>
<input type="text" name="to_id" style="height:5%" value="" />
<input type="hidden" name="to_user" value="" />
<input type="button" name="OK" style="height:5%" value="OK" onClick="javascript:do_ok();" />
</div>
<p></p>
<iframe id="msg_box" name="msg_box" src="./msg_box.html" width=100% height=70%></iframe>
<iframe id="type_box" name="type_box" src="./type_box.html" width=100% height=20%></iframe>
</body>
</html>