<!DOCTYPE html>
<html>
<body>
    <input type="password">
    <script>
      document.getElementsByTagName("input")[0].value = "abcdef";
    </script>
</body>
</html>