You'll only be able to do this in most browsers when the user explicitly triggers a paste (for example, by using Ctrl-V or the edit or context menus).
In Firefox and Opera you'll need to use a hack, such as the one I outlined here: JavaScript get clipboard data on paste event (Cross browser).
In Internet Explorer, Safari and Chrome, you can access the clipboard directly during a paste using window.clipboardData
in IE and the paste
event's clipboardData
property in WebKit. More information can be found on the Apple developer site.