Disable click on a div

后端 未结 4 1398
名媛妹妹
名媛妹妹 2021-01-19 13:07

I want to disable click on a certain

so that when you select the text on it, the text doesn\'t select.

I tried writing onclick=\"retur

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 13:37

    document.getElementById('div1').onmousedown = new function ("return false");
    

提交回复
热议问题