JS history(一)返回上一页
来源:互联网 发布:c语言中的指针是什么 编辑:程序博客网 时间:2024/06/05 05:45
<!DOCTYPE html><html> <head> <title>javascript01.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">--> <script type="text/javascript"> console.log('测试history and location'); function fn1(){ //获取表单元素的值用value,获取其他节点的中的内容用innerHTML var href = document.getElementById('ipt').value; window.location.href = href; } </script> </head> <body> <a href="js06_historyBack.html">js06</a><br/> <a href="#" onclick="fn1()">testLocation</a><input type="text" id="ipt" /> <!-- window.location.href 的href不是一个方法不可以写在onclick=""中,是一个属性,可以通过方法来实现 --> </body></html>
阅读全文
0 0
- JS history(一)返回上一页
- JS history(二) 返回上一页
- JS(history,location的使用)返回上一页以及返回上一页并刷新
- js实现点击浏览器history.go()返回上一页 刷新“上一页”
- js 返回上一页
- js 返回上一页
- js 返回上一页
- js 返回上一页
- js返回上一页
- js返回上一页
- js返回上一页
- js返回上一页
- 开发日程:js使用history.go(-1)返回上一页出现网页过期
- js 页面history.back()返回上一页,ios 不重新加载ready的解决办法
- js 页面history.back()返回上一页,ios 不重新加载ready的解决办法
- js 页面history.back()返回上一页,ios 不重新加载ready的解决办法
- Javascript js 返回上一页 js返回上一页
- Javascript js 返回上一页
- 暑假第一周 A
- Java核心技术
- java中的选择结构和循环结构
- ? addActionListener()调用actionPerformed()
- jsp中的九大隐含对象和EL中的隐含对象
- JS history(一)返回上一页
- 在Android Studio中有六种依赖
- 全排列问题算法实现--递归
- 暑假第一周 R
- 不同进程间消息互发
- jQuery DataTables插件自定义Ajax分页实现
- JS history(二) 返回上一页
- C++操作Excel
- python所有的内置模块官方索引