Sunday, 15 January 2012

copy paste - Simulate ctrl+v event on javascript -



copy paste - Simulate ctrl+v event on javascript -

i seek simulate ctrl+v in javascript. utilize firefox in linux. is:

var pressevent = document.createevent ("keyboardevent"); pressevent.initkeyevent ("keypress", true, true, window, true, false, false, false, 86, 0); var accepted=atarget.dispatchevent (pressevent);

somebody knows why doesn't work??

thanks

copy , paste , clipoard protected. unless there explicit user action won't work simulations. if create script simulates paste within inputbox submit server, might private info people clipboards. so...no, won't work knowledge. love or else prove me wrong , share solution.

but tell you're planning , maybe there's workaround doesn't involve simulated action.

javascript copy-paste keyevent

No comments:

Post a Comment