Ok, basically have a frameset, top and bottom frames. A login form on the top frame directs output to the bottom frame…I have a script in the top frame page to clear out the text entered into the textboxes after logging in:
<script type=”text/javascript”>
function ClearBoxes() {
document.getElementByID(‘Username’).value=””;
document.getElementByID(‘Password’).value=””;
}
And it is executed when the “Login” button is clicked:
<input type=”image” src=”images/login.gif” class=”normal2″ style=”position: relative; top: -345px; left: 60px; margin-left: 0px;” onclick=”ClearBoxes()” width=”45″ height=”12″ />
But it’s not working, it doesn’t throw errors, just doesn’t clear out the boxes….what could be going on? Someone gave me this script, I don’t know much about JS, so any help would be greatly appreciated…each field has the corresponding ID’s already defined (id = “Username”, etc.)….
Thanks!
T