I'm have no basic on jQuery, so really need help with this one.
$(document).ready(function(){
alert('Warning!!');
document.write('prohibited);});
the code above is not made by me, but from my understanding is when the document is ready or finish load up it will call the function, and display window message and write on the document.
what i want to ask is how to combine it with keypress, let say when someone try to view source, so when the document is ready, and someone press ctrl+u then it will call the function
, then display the alert
, and do the document.write
Thank you :)