<style> textarea.area-problem { all: unset; background: black; color: yellow; padding: 10px 10px 10px 20px; font-size: 20px; height: 250px; width: 90%; } </style> <a id="link-problem"></a> <textarea class='area-problem' placeholder='Enter your problem here...' minlength="20" required id='pDesc' rows="5"></textarea> <button style='width: 100%; background: red; color: white; padding: 5px; border-radius: 10px;'>REPORT PROBLEM</button> <script> function getElem(str) { return document.querySelector(str); } getElem('#link-problem').innerText = document.title; getElem('#link-problem').href = window.location.href; </script>