<input type="text" value="Salam DĂĽnya" id="text"> <button onclick="copy()">Kopyala</button> <script> function copy(){ let text = document.getElementById("text"); text.select(); document.execCommand("copy"); } </script>