some note about js
来源:互联网 发布:杭州淘宝运营 编辑:程序博客网 时间:2024/05/17 21:46
1. return false in js event function attached to a when it have a href link to another page, the return false
dose not work in FF
it is not the reason
elms[i].onclick = function(){
...
showPopWin(this.href,width,height,null,true);
return false;
}
var originalTitle = "";
function showPopWin(url, width, height, returnFunc, showCloseBox) {
...
// set the url
gPopFrame.src = url;
gReturnFunc = returnFunc;
...
originalTitle = window.frames["popupFrame"].document.title;
document.getElementById("popupTitle").innerHTML = originalTitle;
window.setTimeout("setPopTitle();", 600);
}
if you have a frame operation in js code
originalTitle = window.frames["popupFrame"].document.title;
this will lead to anohter request, then the return false after this location will not excute ;
2. IE not support operation dynamic aded node before them added.
3. swfojbect not work normaly in ff 3.5, must palce the js in header
- some note about js
- Note 07/08/02 some question about js on Asp.Net : Vss 6.0
- A note about some errors which cause by android.R
- some note
- c++ note some detail
- Andorid--Application some note
- note:some learn remark
- Some words about ICE...
- About some techno-words
- some links about UML
- Some tutorial about geometry
- Some videos about Avalon
- Some Tips about Interbase
- some understanding about Java
- Some words about Computer
- some function about TIVOLI
- some about wcg
- some thing about JSon
- AX中的收藏夹备份
- nagios监控mysql主从复制
- 使用ADF文本编辑器(RichTextEditor)组件
- 自动提取C#类文件中的代码注释文字
- VOA背景音乐
- some note about js
- 关于软件开发的 语法学习 和 框架之类 的应用的考虑
- 自动化测试框架开发5步法
- JavaScript去掉字符串的前后空格
- sqm文件
- 选择Icon文件来替换EXE的图标
- 火狐不执行js的一些解决办法及火狐对js的兼容问题
- 如何访问html网页中的帧对象
- 获取table中之间的文本值