-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.html
More file actions
23 lines (23 loc) · 925 Bytes
/
test2.html
File metadata and controls
23 lines (23 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>パラメータ取得テスト</title>
<script type="text/javascript">
function moveToTest1(){
var param1 = encodeURIComponent(document.testform.param1.value);
var param2 = encodeURIComponent(document.testform.param2.value);
var param3 = encodeURIComponent(document.testform.param3.value);
window.open("test1.html?param1="+param1+"¶m2="+param2+"¶m3="+param3,"_self");
}
</script>
</head>
<body>
<form id="testform" name="testform">
<input type="hidden" id="param1" name="param1" value="?=&">
<input type="hidden" id="param2" name="param2" value="?=&">
<input type="hidden" id="param3" name="param3" value="?=&">
<input type="button" value="テスト1へ" onclick="moveToTest1();">
</form>
</body>
</html>