That looks oddly familiar... :) I'm fairly certain that there isn't a cross-browser way to detect pastes. The sample Jörn posted will only catch IE and Mozilla.
Josh On Jul 5, 3:35 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > PaulM wrote: > > how can I prohibit from users pasting content into text boxes? > > Something along these lines: > > if ($.browser.msie) > this.onpaste= function(){setTimeout(checkVal,0);}; > else if ($.browser.mozilla) > this.addEventListener('input',checkVal,false); > > -- > Jörn Zaefferer > > http://bassistance.de