<!DOCTYPE html> <script> onload = function() { var t = document.createElement('textarea'); t.placeholder = "placeholder"; document.body.appendChild(t.cloneNode(true)); } </script>