I would like to make it so that every page that shows "password dots" is text-highlighted, so all I would have to do is press the "Enter" key and the password will be submitted. Is there a Firefox addon, or a script I can download/make to make this possible? Sorry for sounding completely ignorant I'm not very computer savvy!
问问题
50 次
1 回答
0
您的 HTML 应如下所示:
<!--html above-->
<input type='password' id='pass' name='pass' value='yourPasswordHere' />
<!--more html below-->
<script type='text/javascript' src='common.js'></script>
</body>
</html>
您的外部 JavaScript,另存为common.js
应该如下所示:
function E(e){
return document.getElementById(e);
}
E('pass').select();
于 2013-09-05T23:03:31.933 回答