Forum Moderators: travelin cat
Thanks,
Kevin
<input type="text" name="client_login" size="12" maxlength="12" class="contentheight16red" value="Login Failed" onFocus=document.login.client_login.value=""
onChange=document.login.client_login.focus()>
It worked fine on a PC and allowed the form to post correctly. But when I viewed the page on a Mac, the form would not post correctly and I couldn't get a value from this text box. I believe it has to with setting the value to nothing in the JS
onFocus=document.login.client_login.value=""
Does anyone have any better JavaScript samples for a preloaded textbox that when clicked on removes the text AND allows the form to post correctly?
Thanks,
Kevin