I have this password field
input class="txtfld" type="password" id="TextBoxLoginPassword" runat="server"
value="password"
onfocus="javascript:if(this.value == 'password') this.value='';"
onblur="javascript:if(this.value == '') this.value='password';"
onload="javascript:if(this.value == '') this.value='password';"
validationgroup="Login" />
Problem is that this appears as empty. Even I have set a default value. To solve this problem I have added an onload event and I get following error
- Empty Character Literal
- Too many Characters in character literals Why does this appear empty in first place and why do I get these errors? What I need is to show a default value in password field.