日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

禁止IE用右鍵的JS代碼

復(fù)制代碼 代碼如下:
!--禁止網(wǎng)頁(yè)右鍵: --
【禁止IE用右鍵的JS代碼】document.body.oncontextmenu=function rightClick(){ window.event.returnValue= https://www.rkxy.com.cn/dnjc/false;}
!--禁止網(wǎng)頁(yè)另存為: --
noscriptiframe src=https://www.rkxy.com.cn/dnjc/*.html/iframe/noscript
!-- 禁止選擇文本: --
script type="text/javascript"
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
/script
!-- 禁用右鍵: --
script
function stop(){
return false;
}
document.oncontextmenu=stop;
/script

您可能感興趣的文章:javascript實(shí)現(xiàn)禁止右鍵和F12查看源代碼js禁止頁(yè)面刷新禁止用F5鍵刷新禁止右鍵的示例代碼js禁止頁(yè)面復(fù)制功能禁用頁(yè)面右鍵菜單示例代碼JS實(shí)現(xiàn)禁止鼠標(biāo)右鍵的功能js禁止頁(yè)面使用右鍵(簡(jiǎn)單示例代碼)JavaScript代碼實(shí)現(xiàn)禁止右鍵、禁選擇、禁粘貼、禁shift、禁ctrl、禁altJS禁止瀏覽器右鍵查看元素或按F12審查元素自動(dòng)關(guān)閉頁(yè)面示例代碼

    推薦閱讀