摘要: 学了点新的知识:俺也加点自己的JS技巧:1.访问html标记的自定义属性<inputid="aa"value="iloveyou!"msg="Messagefromattribute">alert(aa.getAttribute("msg"));alert(aa.getAttribute("value"));aa.setAttribute("msg","someAttribute");... 阅读全文
posted @ 2007-05-11 16:34 VincentYinBo 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 1.oncontextmenu="window.event.returnValue=false"将彻底屏蔽鼠标右键<tableborderoncontextmenu=return(false)><td>no</table>可用于Table2.<bodyonselectstart="returnfalse">取消选取、防止复制3.onpaste="re... 阅读全文
posted @ 2007-05-11 16:23 VincentYinBo 阅读(2252) 评论(0) 推荐(0) 编辑