看了supNate的blog觉得很有启发,不过觉得alert的话还可以被重写,直接用void不就完事了。
这个时代真的需要创造力。

/**//*author:livahu
**2006-12-22
**下面代码的解释
**document.onselectstart=function(){return false;} 屏蔽选中事件
**document.oncontextmenu=function(){return false;} 屏蔽右键菜单
**document.onmousedown=function(){
**if(event.button==2)return false;
**} 另一种屏蔽右键菜单
**document.onkeydown=function(){
**if(event.ctrlKey)return false;
**} 屏蔽ctrl按键
**/
javascript:void(document.onselectstart = document.oncontextmenu = document.onmousedown = document.onkeydown = function(){return true;});
解除网页屏蔽的另一种方法,将上述代码放入浏览器地址栏就OK了
其实还可以用这种方法做一些坏事,这里就不说了,该明白了就会明白了,呵呵。
1万+

被折叠的 条评论
为什么被折叠?



