For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Saturday, January 14, 2023

Javascript Events of mousedown mousemove keydown scroll touchstart click keypress touchmove

Javascript Events of mousedown mousemove keydown scroll touchstart click keypress touchmove
<script type="text/javascript">
var sd=!1;
console.log(sd);
function myworker(){
    if(!sd){
        sd=!0;
        console.log("Yes");
        console.log(sd);
    }
}
var myallEvents=["mousedown","mousemove","keydown","scroll","touchstart","click","keypress","touchmove"];
myallEvents.forEach(function(t){window.addEventListener(t,myworker,!1)});
</script>

Share:

0 comments:

Post a Comment

Add Dependent Scripts

   here is the code that allow to add dependent script :         <script>         const addDependentScripts = async function( scriptsT...

Ads Inside Post

Powered by Blogger.

Arsip