View Full Version : strange thing happened

07-31-2010, 04:57 AM
how to change the boring black circles on a password box to something like $$$$ or ооооооо

thanks in advance

07-31-2010, 07:35 AM
I don't think you can. The only time I've ever seen them change is in different web browsers, and that's either just a change in size or sometimes asterisks instead of circles.

07-31-2010, 08:55 AM
the strange thing that happened, ealier I was logging into the script and I got love hearts instead of the black dots which is very strange. I did nothing for this to happen when I reloaded the page it was back to normal

07-31-2010, 11:36 AM
You could write a javascript function that changes the keypress behavior.

Something like


<script type="text/javascript">
var pw = "";
function showPass() {
function maskField(obj,event) {
if (obj.value.length == 0) {
pw = "";

if (window.event) {
var key = event.keyCode;
else {
var key = event.charCode;
if (event.keyCode == 8) {
pw = pw.slice(0, -1);
obj.value = obj.value.slice(0, -1);
else if (key.toString().length > 0 && key > 33) {
char = String.fromCharCode(key);
pw = pw + char;
obj.value = obj.value + "&";

return false;



<form action="#" method="get">
Text: <input type="text" id="password" onkeypress="maskField(this,event);return false;">
<br /><br />
<input onclick="showPass();" type="button" value="Show pass">


There are a lot of things you would need to work out but that's at least a place to start.