one usage of return false
2007-12-06 13:20
239 查看
在页面按下一个button提交页面时,发现会首先本页滚动到最上面,然后再跳转页面。要防止这个bug,需要这样写:<a onclick="javascript:JSFunction(); return false;" href="#">LinkButton</a>,加上return false即可以做到。
相关文章推荐
- (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitte
- Apache Error:(OS 10048)Only one usage of each socket address is normally permitted.
- 【DataStructure】One of queue usage: Simulation System
- 【DataStructure】One of queue usage: Simulation System
- One usage of recurison: the tower of Hanoi
- Tomcat无法启动解决(二)_Only one usage of each socket address is normally permitted
- One usage of recurison: the tower of Hanoi
- 由表单中onsubmit="return false;"想到的
- one of the open source framework spring key features -dependency injection
- 伪代码的使用 Usage of Pseudocode
- Component 'systray.ocx 'or one of its dependencies not correcyly registered;a file is missing or inv
- 'UIAlertController can only have one action with a style of UIAlertActionStyleCancel'
- One-root-entity-per-returned-row phenomenon of hibernate
- LeetCode OJ 之 Number of Digit One (数字1的个数)
- How to run multiple instances of Tomcat in one Windows machine
- One Bug of WatiN?
- springMVC返回json格式数据报错:No converter found for return value of type: class java.util.HashMap
- Could not load file or assembly 'XXX' or one of its dependencies.
- 1172 - Result consisted of more than one row
- 人脸对齐--One Millisecond Face Alignment with an Ensemble of Regression Trees