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