两个html页面互相传值
来源:互联网 发布:张东健在韩国地位 知乎 编辑:程序博客网 时间:2024/05/17 23:46
从a.html 跳转到b.html 并吧 a.html 的值传入b.html
a.html
- <html>
- <head>
- <title> New Document </title>
- <script>
- function to (){
- var getval =document.getElementById("cc").value;
- document.location.href("b.html?cc="+getval);
- }
- </script>
- </head>
- <body>
- <input type="text" id ="cc" > <input type="button" value="a" onclick="to()" >
- </body>
- </html>
b.html
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title> New Document </title>
- <script>
- var thisURL = document.URL;
- var getval =thisURL.split('?')[1];
- var showval= getval.split("=")[1];
- function showvalf(){
- alert(showval);
- document.getElementById('ee').value=showval;
- }
- </script>
- </head>
- <body onload="showvalf()">
- <input type="text" id ="ee" />
- </body>
- </html>
0 0
- 两个html页面互相传值
- OnClientTriggerClick 两个页面之间互相传值
- html页面互相传值的问题
- iOS开发 使用Block实现两个页面互相传值
- 在两个html页面之间传值
- 两个html页面之间的传值
- 两个HTML页面之间传值
- 关于两个html页面之间的传值
- 两个HTML页面之间传值的问题
- 两个静态html页面传值方法的总结
- 两个html页面之间传参
- 两个 html 页面之间传数据
- html与jsp互相传值示例
- js实现两个多选框互相传值过程(原)
- angular实现两个select选择框互相传值
- 两个html页面之间怎么传递参数值
- html 两个多选下拉列表元素互相移动
- 父页面里两个iframe之间互相访问
- maven常见异常及解决办法
- V,W,H模型
- Oracle常见等待事件说明
- Oracle date和timestamp区别
- 解决xcode7真机测试不能联网
- 两个html页面互相传值
- mybatis快速入门
- [jQuery插件] 移动端整屏滚动的DD Full Screen Slider
- Linux Shell 1>/dev/null 2>&1 含义
- Remove Element<leetcode>
- hadoop环境配置过程中可能遇到问题的解决方案
- 文章标题
- 快速排序算法-分治思想
- 欢迎使用CSDN-markdown编辑器(作为备忘)