html 页面之间跳转和传值
2013-06-05 14:28
471 查看
从a.html 跳转到b.html 并吧 a.html 的值传入b.html
[b]a.html[/b]
<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>
相关文章推荐
- HTML页面之间跳转传值
- html 页面之间跳转和传值
- html&nbsp;页面之间跳转和传值
- HTML页面之间跳转与传值(JS代码)
- HTML页面之间跳转与传值(JS代码)
- HTML页面之间跳转与传值(JS代码)
- Android混合开发之Activity类与html页面之间的相互跳转(并解决黑屏问题)
- Android混合开发之Activity类与html页面之间的相互跳转(并解决黑屏有关问题)
- 页面之间传值跳转
- 两个HTML页面之间传值的问题
- 在两个html页面之间传值小示例
- Android混合开发之Activity类与html页面之间的相互跳转之PhoneGap
- IOS 页面之间的跳转以及传值
- 【android开发】页面之间的跳转和传值
- PHP实现一个简单的计算器(在html页面和php文件之间传值)
- Android混合开发之Activity类与html页面之间的相互跳转之Android:如何使用addJavaScriptInterface
- js实现html 页面之间的跳转传参以及返回上一页的相关知识点
- 在静态页面html中跳转传值
- 关于HTML页面之间的跳转问题,兼容ie9
- 在静态页面html中跳转传值