I have some text that I am bringing from a database that I would like to be attached to a button "a href" and when it is clicked on copies it into the clipboard. For IE and Mozilla.
I would like another script to ask user if they want to take the contents from the clipboard (if there are any) and paste into the form.
I have seen screen for the first but the work off an ugly form. Any ideas anyone?
I think you'll be on a hiding to nothing - clipboard copy/paste from script should be at worst unreliable, at best impossible due to the security abuses it would open up. I'd strongly suggest trying to find another solution, as even if you get a partial solution from one browser you can be pretty confident it won't work in another, or for mac users, or linux users or ... you get the idea. The great thing with HTML is the portability, can be viewed on any box (even text browsers and speaking browsers for the deaf), and javascript extensions will not port easily.
[i]Clippings add a method of collecting links on a site for later browsing. First used at IHT.com and also in use at Three Oh (called Excerpts), they function like a shopping basket for links or other URI addressed data. Cookies are required.[i/] - smokingun.com
Not sure about browser compatibility.
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails