Clicking button does not jump to a particular page in IE9
来源:互联网 发布:漯河淘宝加盟被骗了 编辑:程序博客网 时间:2024/06/07 01:02
Today I write two pages in ie9. One page has a button to click to jump to another page.
Here is my code:
page One:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head></head><body> <button onclick="myFun()">Click</button><script>var a=1;function myFun(){ console.log(a);//error self.location="b.html";}</script></body></html>
page Two
<html><body><p>hello</p></body></html>
When first I click the button,nothing works.I do not know what is wrong.Then I want to debug it and press the key f12 on keyboard.Suddenly it works.So strange!
At last I find information on the Internet and got it.The object console is undefined on the page in ie9 unless you press f12 then it will appear.
0 0
- Clicking button does not jump to a particular page in IE9
- QT24&25 how to run exe file by clicking a button in Qt
- How to remove a block from the particular page?
- How to achieve success in a particular field
- OpenERP-点击按钮跳转到外部URL(Redirect to external URL by clicking a button)
- HOW TO: remove the 300ms delay when clicking on a link in JQuery Mobile
- How to sort an array in Ruby to a particular order?
- "Palean basket" is not particular to Palean
- Sorry, you requested a page that does not exist.
- Setting Page.Header.Title in the codeBehind causes an UpdatePanel to not render after a callback
- Path does not point to a directory.
- WPF Background property does not point to a dependencyobject in path '(0).(1)'
- product detail page add to cart button not working?
- Scheduler Jump to History Page
- shader error: unable to unroll loop, loop does not appear to terminate in a timely manner的解决办法
- How To Get a Jump Start In Your Programming Career
- 错误:Cannot access session scope in page that does not participate in any session
- How to use git in general and bitbucket in particular
- matlab中图像直方图及其均衡化(含直方图)的实现
- eclipse +PyDev 设置
- c++学习之变量的存储类别
- 使用cocoaPods,pch提示找不到文件或者导入文件不智能索引
- java从控制台读取数据的方式
- Clicking button does not jump to a particular page in IE9
- CentOS7 修改主机名
- 如何在linux嵌入式开发板上开机自动运行用户应用程序
- Android AIDL尝试
- LeetCode - 5 Longest Palindromic Substring 最长回文子字符串
- 通过Comparator和Comparable对集合进行排序
- New Document
- 关于二维数组当做函数参数的问题
- C++ STL中next_permutation的实现