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

Save as Private