Pages: 123

  2008-11-05 02:17:00

qyneprox
» n00b
FTalk Level: zero
40
0
1969-12-31

Re: Disable User's Keyboard* Code: [code]function keypressed() { alert("Sorry, but you can't do that."); } document.onkeydown=keypressed; // End -->[/code] This will keep the visitor from being able to

[quote=ReadMeNoT]Disable User's Keyboard* Code: Code: function keypressed() { alert("Sorry, but you can't do that."); } document.onkeydown=keypressed; // End --> This will keep the visitor from being able to copy using "CTRL + C"! *Note - This will not disable commenting! So don't worry about that. Note After Testing* That's kinda cool... you can't use the keyboard at all unless a comment box is "selected" for lack of a better word. It'd get really anoying for someone like me though who uses nothing but keyboard shortcuts to navigate. I noticed backspace key still goes back a page, even though you get the notice, so I tried to see if you could cheat your way around it... guess not.... lol. If you try to copy anyway, you get this... --------------------------- Microsoft Internet Explorer --------------------------- Sorry, but you can't do that. --------------------------- OK[/quote] if use shortcut keyboard then log of how ? :question:

Pages: 123

Board footer

© 2024 F Talk

Current time is 00:07

[ 15 queries - 0.013 second ]
Privacy Policy