HTML code for COPY TO CLIPBOARD not involving frames and buttons?

Discussion in 'Computer Support' started by fitwell, Dec 19, 2003.

  1. fitwell

    fitwell Guest

    I'm modifying a saved webpage
    ( but I just need to
    make the hexadecimal colour codes in column 4 available as
    copy-to-clipboard. Which means that if I need to convert the numbers
    to a "link" that when pressed copies the 6-digit code itself to the

    All I see from looking at page after page after page of examples is
    that a frame is used with a button to do this and the entire paragraph
    within the frame is what is copied (i.e., That is
    way too much coding to use even if I figured out how to do this for
    every individual cell with a hexadecimal #in the saved page.

    So what would be the coding for just copying a piece of text to
    clipboard by clicking on the text itself, anyone know? Thanks!
    fitwell, Dec 19, 2003
    1. Advertisements

  2. fitwell

    why? Guest

    On Fri, 19 Dec 2003 13:23:42 GMT, fitwell wrote:

    HTML won't do that, it's just a markup language.

    So something is wrong with - right (secondary mouse button) click and

    Then of course there is the other problem, that with JavaScript turned
    off I see nothing on that page, it simply sits at loading.......
    The coding appears to be fairly simple, in a <script> tag it contains
    lines like -

    function ClipBoard1()
    holdtext.innerText = copytext1.innerText;
    Copied = holdtext.createTextRange();

    Then in the table -

    <TEXTAREA ID="holdtext" STYLE="display:none;">
    <td width="100%">
    <BUTTON onClick="ClipBoard1();">Copy to Clipboard</BUTTON>

    It appears the amount of text to be copied is the <TEXTAREA> ...

    But as I can't actually see it working I am not exactly sure.

    why?, Dec 19, 2003
    1. Advertisements

  3. fitwell

    °Mike° Guest

    Double click on the code in column 4 -- which highlights it --
    and then press CTRL+C.
    °Mike°, Dec 19, 2003
  4. fitwell

    fitwell Guest

    Yesss, thank you so much <g>.

    The original request still stands. Anyone happen to know any html
    coding so that a link we press saves the info to the clipboard but
    that does not involve having to put each piece of info into a frame??

    fitwell, Dec 20, 2003
  5. fitwell

    °Mike° Guest

    You're welcome.
    As 'why?' has already told you, HTML won't do that.

    °Mike°, Dec 20, 2003
  6. fitwell

    fitwell Guest

    I'm sure the code is somewhere, it's always a question of finding it.
    However, did come up with a solution that will do the job. Although
    all html colour tools I'd ever seen were colour pickers, I found a
    small, no-install one that is a colour mixer. A little on the
    cumbersome side and wouldn't have been as good as converting a colour
    wheel so that clicking on it would send the code to the clipboard, but
    this one will do the job. (p.s., colour mixer called "Pallette".)

    Cheers! :eek:D

    fitwell, Dec 23, 2003
  7. fitwell

    why? Guest

    Did you try one of the JavaScript groups? You can't always rely on the
    user having this turned on. So maybe some JavaScript and a note how to
    do it if not enabled.

    That leaves server side, if can't do it by client scripting but maybe
    more of a security issue.


    why?, Dec 23, 2003
  8. Ich kann diese Schreiben nicht lesen!
    Margarete Beyer, Dec 25, 2003
  9. fitwell

    fitwell Guest

    Well, I went to get this translated online and returned this:

    "I cannot read these letters!"

    fitwell, Dec 26, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.