cara membuat elemen tidak bisa diklicking

<style>
/*css*/
yourElement{
	pointer-events: none
}
</style>

<script type='text/javascript'>
//javascript
document.getElementById('yourElementId')
</script>

<!--html-->
<yourElement id="yourElementId" style="pointer-events: none"></yourElement>
Nutty Narwhal