87,991
社区成员
发帖
与我相关
我的任务
分享<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function openBpage(){
window.open('http://localhost:8080/testweb1/openpage?ttt=e22e','newwindow','height=100,width=400,top=111,left=111,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
}
</script>
<body>
<form name="indexPage" method="POST">
<H1>this A Page</H1>
<a>click the button to get the number</a>
<input type="button" value="open B page" onclick="openBpage();">
<input type="hidden" name="testNumber" value="123">
<input type="hidden" name="ttt" value="111">
</form>
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
var a=0;
$(function(){
a=$(":hidden[name='ttt']").val();
})
function openBpage(){
alert(a);
window.open("http://localhost:8080/testweb1/openpage?ttt="+a+",'newwindow','height=100,width=400,top=111,left=111,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'");
}
</script>
<body>
<form name="indexPage" method="Get">
<H1>this A Page</H1>
<a>click the button to get the number</a>
<input type="button" value="open B page" onclick="openBpage();">
<input type="hidden" name="testNumber" value="123">
<input type="hidden" name="ttt" value="111">
</form>
</body>
</html>