Aapka Apna blog jo kre apki problem Solve

Friday 12 July 2019

how to copy text to clipboard With javascript || javascript mini project


how to copy text to clipboard With javascript





<!DOCTYPE html>

<html>

<head>

<title>Copy Text to Clipboard</title>

</head>

<body>


 <center>

<h1> Copy Text to Clipboard</h1>


       <input type="text" name="" id="copy">


      <button onclick="mycopy()">Copy Text</button>

   </center>


   <script type="text/javascript">

   

    function mycopy() {

    var copytext = document.getElementById('copy');

    copytext.select();

    document.execCommand("copy");

    alert(copytext.value);

    }


   </script>

</body>

</html>

Share:

2 Comments:

  1. How To Copy Text To Clipboard With Javascript >>>>> Download Now

    >>>>> Download Full

    How To Copy Text To Clipboard With Javascript >>>>> Download LINK

    >>>>> Download Now

    How To Copy Text To Clipboard With Javascript >>>>> Download Full

    >>>>> Download LINK tG

    ReplyDelete

loading...