Hello,
I have a situation where I have to share user names and passwords for a list of sites among several (30 or so) users. These passwords must be reset every 90 days and anytime any one of the users is no longer employed by us. As you can imagine, the user will get locked frequently due to people not paying attention to when a password changes.
I want to create a web site that has a link to each site that when clicked will take you to the site and auto fill the user name and password.
I am attempting to do this using bookmarklets. This is what I have so far:
Obviously, I replaced mysite.com with the site I was trying to log into.
I know the second bit works (the document.forms. .. part) because if I navigate to the page and then execute it, it will fill in the fields. However, when I run it as is, it takes me to the page but does not fill in the fields.
The function checkLoad is supposed to check if the page is loaded and fill in the fields when it is, but it isn't working. Any suggestions or alternative approaches would be very welcome
I have a situation where I have to share user names and passwords for a list of sites among several (30 or so) users. These passwords must be reset every 90 days and anytime any one of the users is no longer employed by us. As you can imagine, the user will get locked frequently due to people not paying attention to when a password changes.
I want to create a web site that has a link to each site that when clicked will take you to the site and auto fill the user name and password.
I am attempting to do this using bookmarklets. This is what I have so far:
Code:
javascript:window.location.href ="http://www.mysite.com"; checkLoad(); function checkLoad() { if (window.onLoad) {document.forms[0].elements["oper"].value ='Eric';document.forms[0].elements["pswd"].value = 'secret';} else {setTimeout('checkLoad()',1000);}}
I know the second bit works (the document.forms. .. part) because if I navigate to the page and then execute it, it will fill in the fields. However, when I run it as is, it takes me to the page but does not fill in the fields.
The function checkLoad is supposed to check if the page is loaded and fill in the fields when it is, but it isn't working. Any suggestions or alternative approaches would be very welcome
Comment