html,子页面向父页面传递参数
来源:互联网 发布:专门听排箫的软件 编辑:程序博客网 时间:2024/06/07 02:20
父页面
<!DOCTYPE html><html> <head> <title>MyHtml.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!--<link rel="stylesheet" type="text/css" href="./styles.css">--><style type="text/css"></style> </head> <script type="text/javascript"> function aaa(){ window.open("index.jsp", 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no'); } function bbb(content){ document.getElementById("test1").value = content;//赋值 } </script> <body> <input id="test1" type="text" > <input type="button" value="提交" onclick="aaa()"> </body></html>
子页面
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <base href="<%=basePath%>"> <title>My JSP 'index.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <script type="text/javascript"> function aaa(){ var str=document.getElementById("ddd").value; alert(str); window.opener.bbb(str); window.close(); } </script> <body> <input id="ddd" type="text"/> <input type="button" value="提交" onclick="aaa()"/> </body></html>
0 0
- html,子页面向父页面传递参数
- ionic 路由使用$state.go父页面向子页面传递参数
- ionic 路由使用ui-sref 父页面向子页面传递参数
- 向页面传递数组参数
- 静态页面向动态页面传递参数
- HTML页面间传递参数
- html页面跳转传递参数
- html页面跳转传递参数
- layer向子页面传递对象
- 向框架中的页面传递参数
- 页面向js function 传递参数
- 使用layer 弹出对话框 子父页面相互参数传递 父页面获取子页面参数实例
- 子页面向父页面传值
- 子页面向父页面传值
- 子页面向父页面传值
- 子页面向父页面传值
- 静态HTML页面传递参数的方法
- 实现html页面的参数传递
- 陇南代办医院诊断证明
- Socket监听 /TcpListener监听/HttpListener 监听
- linux中限制用户登录时间
- An internal error occurred during: “Updating Maven Project”. java.lang.NullPointerException
- 关于layoutSubviews的一点使用总结
- html,子页面向父页面传递参数
- mac上搭建openfire服务器
- 【转载】python模块之poplib: 用pop3收取邮件
- 沙河代办医院诊断证明
- 涿州代办医院诊断证明
- 定州代办医院诊断证明
- 安国代办医院诊断证明
- 泊头代办医院诊断证明
- hdu 5378 Leader in Tree Land dp+逆元