Yes, Voodoo and obvious simplicity at once!
Security also dictates that at the very least javascript cannot have access to the clipboard without some user permission/input (If it had it, pages could steal the content of your clipboard without your permission).