Clearing a Login Form on Page Load
Hi:
I have a Login form in a .php page that whenever it loads shows some values in the Username and Password fields. The program is uploaded on a private company server.
Is there any way to clear all form fields on page load? I have tried the following JS code but it doesn't work:
<script>
function myFunction() {
document.getElementById("form1").reset();
}
</script>
<body onload="ClearForm()">
Any suggestions on this?
Thank you for your attention