WEB頁面內容禁止選擇 複製 右鍵等實現

2021-08-16 03:38:40 字數 819 閱讀 6283

1.禁止右鍵:在後面加入以下**:

關鍵在於

topmargin="0" 

οncοntextmenu="return false"

οndragstart="return false"

onselectstart ="return false"

οnselect="document.selection.empty()"

οncοpy="document.selection.empty()"

onbeforecopy="return false"

οnmοuseup="document.selection.empty()"

2.禁止網頁另存為:在後面加入以下**:

3.禁止網頁內容複製.貼上:在中加入以下**: 

οnmοusemοve=/hidemenu()/ 

οncοntextmenu="return false"

οndragstart="return false"

onselectstart ="return false"

οnselect="document.selection.empty()"

οncοpy="document.selection.empty()"

onbeforecopy="return false"

οnmοuseup="document.selection.empty()"

HTML頁面內容禁止選擇 複製 右鍵

關鍵就在 oncontextmenu return false ondragstart return false onselectstart return false onselect document.selection.empty oncopy document.selection.empty ...

HTML頁面禁止選擇 頁面禁止複製 頁面禁止右鍵

轉至 html頁面內容禁止選擇 複製 右鍵 剛在乙個看乙個站點的源 的的時候發現的,其實原來真的很簡單 關鍵就在 nc ntextmenu return false ndragstart return false onselectstart return false nselect document...

HTML頁面禁止選擇 頁面禁止複製 頁面禁止右鍵

html頁面內容禁止選擇 複製 右鍵 剛在乙個看乙個站點的源 的的時候發現的,其實原來真的很簡單 關鍵就在 nc ntextmenu return false ndragstart return false onselectstart return false nselect document.se...