![]() Preserved Topic: javascript using the clipboard (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Raleigh, NC |
![]() I'd really like to know if there's a function that will copy a string to the clipboard so that I can paste it elsewhere. code: javascript:flashToClipBoard('http://www.ozoneasylum.com');
code: <script language="JavaScript">
|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Check the code at http://dev.runningwolf.com/code/javascript/decipher.htm |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() Bmud: Yep I use Pugzly's functions a lot - very handy. |
Bipolar (III) Inmate From: Raleigh, NC |
![]() How about working without forms? Or do I just HAVE to have one?? I'd really like to do this: code: <script language="JavaScript"> Is that possible..? |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() question... |
Bipolar (III) Inmate From: Raleigh, NC |
![]() Precicely my point. It doesn't work though. try it for yourself. |
Obsessive-Compulsive (I) Inmate From: |
![]() The easiest way to do this in ie 5+ is by using |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
![]() quote:
|
Obsessive-Compulsive (I) Inmate From: |
![]() If you create a page for a company or something big, then yes, i agree with you, the page should work on as many browsers as possible... but if you make a page otherwise, just for fun or to show what you can do with dhtm, then forget about netscape/mozilla... users. i mean, how many of them are there now, anyway? (does anyone know the new statistics??) you will just limit yourself. i normally make a page to work on ie and then create a smaller version with less functions for the other browsers. (well, i used to be a netscape-fan, but that was a looong time ago ^_^) |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
![]() [off-topic] |
Obsessive-Compulsive (I) Inmate From: |
![]() sorry, didn't want to drag you into a "IE is better than Mozilla" discussion, and the page i linked to wasn't supposed to be running on mozilla (that was the whole point of it) and 2.3% till 14% aren't that many users considering that most of them have ie installed as well (most of my friends have all browsers installed, just to test if all the pages really work on all the browsers), and sorry that you didn't like that i disabled YOUR controls, but the page with the statistics was fascinating anyway ...[/off-topic] |
Bipolar (III) Inmate From: Raleigh, NC |
![]() This is what I came up with. I know I can't use a string with execCommand. I'm sticking to the function, because as far as I know, it's cross-platform. So I threw in a tiny form that eats up my string, then i select it, copy it. ta-da |