HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p onmousedown="myFunction(event)">Hold 'CTRL' key and click on me</p> <script> function myFunction(e){ if(e.ctrlKey) alert("ctrlKey was Pressed"); else alert("ctrlKey was not Pressed"); } </script> </body> </html>
OUTPUT
×

Save as Private