<!DOCTYPE html>
<html>
<body>
<script>
window.onload = function(){
document.getElementById("user").value = "";
}
</script>
<form method="POST" action="">
<input name="username" id="user" value="test" /><br />
<input name="pwd" id="pass" value="test" />
<input type="submit" value="Go" />
</form>
</body>
</html>