Help - Input button clipboard paste function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lenny Linux

    Help - Input button clipboard paste function

    Is there any javascript or html example code I can look at to have an input
    button paste windows clipboard data into a textarea.

    I'm just a slow in the head tired old man seeking answers to how.




    --------------------------------------------
    This E-mail was scanned by
    Norton Anti-Virus


  • Lenny Linux

    #2
    Re: Help - Input button clipboard paste function

    Ok I figured it out.

    I just needed to get the names straight - the form and the textarea than
    reference it in the function to paste.

    <Script>
    function p1();{
    disform.datexta rea.value=windo w.clipboardData .getData("Text" );
    }
    </script>

    <form name=disform>
    <input type=button value='Paste' onclick='p1()'>
    <textarea name=datextarea ></texarea>
    <form>



    "Lenny Linux" <mysterian_1@ho tmail.com> wrote in message
    news:fLKnd.118$ %76.18@twister. rdc-kc.rr.com...[color=blue]
    > Is there any javascript or html example code I can look at to have an[/color]
    input[color=blue]
    > button paste windows clipboard data into a textarea.
    >
    > I'm just a slow in the head tired old man seeking answers to how.
    >
    >
    >
    >
    > --------------------------------------------
    > This E-mail was scanned by
    > Norton Anti-Virus
    >
    >[/color]


    Comment

    Working...