-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchild.html
37 lines (30 loc) · 992 Bytes
/
child.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
30
31
32
33
34
35
36
37
<html>
<head>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
</head>
<body>
管理No
<input type="text" id="kanriNo">
<button onclick="send()">送信</button>
<script>
$.urlParam = function (name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results == null) {
return null;
}
return decodeURI(results[1]) || 0;
}
$(function () {
var kanriNo = $.urlParam('kanriNo');
console.log(kanriNo);
$("#kanriNo").val(kanriNo);
});
function send() {
window.opener.document.getElementById("result").textContent
= document.getElementById("kanriNo").value;
$(window.opener.document.getElementById("reloadFlg")).val("1");
}
</script>
</body>
</html>