please can you send source code
views:
454answers:
3
A:
This is a bad idea. You should not be showing users passwords on screen. Ideally, your application should not be able to retrieve passwords, only check a hashed password against a persisted salted hash.
RedFilter
2010-01-02 15:17:22
which is in user name text box, it should display text[username], and Password text i have to display [ password]. when user enter password text box it should be display[******].
vasanth
2010-01-02 16:08:13
A:
Give this a shot... if you REALLY want to change the field type, which I don't suggest.
Source code examples provided.
Brad
2010-01-02 15:17:26
+2
A:
Try this.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<script type="text/javascript">
function ChangeToPassField() {
document.getElementById('MyPasswordField').type="password";
}
</script>
</head>
<body>
<input type="text" value="password" id="MyPasswordField" onfocus="ChangeToPassField()" />
</body>
</html>
GeekTantra
2010-01-02 15:19:20
Thanks, But I need user name text box, it should display text[username], and Password text i have to display [ password]. when user enter password text box it should be display[******].
vasanth
2010-01-02 16:01:46
I thinks this does what you wanted, maybe if you add code to remove the text (`document.getElementById('MyPasswordField').value = "";`)
Martinho Fernandes
2010-01-02 16:21:13