常用JS
2011-04-21 15:35 myjava2 阅读(108) 评论(0) 编辑 收藏 举报防止页面被包含,onload执行:
if ( top != self ) { top.location.replace(unescape(top.location.pathname)); }
//删除表格所有行
function removeAllRow(table){
var len = table.rows.length;
for(var i=len-1; i>0; i--){
table.deleteRow(i);
}
}