Underligt. Min egen server - der burde ikke være problemer.
Men jeg lægger koden her, så kan du selv plukke...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd"><html lang="da-DK">
<head>
<style type="text/css">
.skjul { display:none; }
.vis { display:block; }
</style>
<script type="text/javascript">
window.addEventListener('load', InitMyKey);
function InitMyKey() {
var pw_elm=null, adm_elm=null;
pw_elm = document.getElementById('pw');
adm_elm = document.getElementById('admButton');
if (pw_elm) {
pw_elm.value = "";
pw_elm.className = "skjul";
}
if (adm_elm) {
adm_elm.className = "skjul";
adm_elm.addEventListener('click', AdmClick);
}
document.addEventListener('keydown', CatchKey);
}
function CatchKey(ev) {
var pw_elm=null, adm_elm=null, tx='';
pw_elm = document.getElementById('pw');
adm_elm = document.getElementById('admButton');
if (pw_elm) {
tx = pw_elm.value;
tx += ev.key;
pw.value = tx;
if (adm_elm && (tx == 'admin')) {
adm_elm.className = 'block';
}
}
}
function AdmClick() {
var pw_elm=null, adm_elm=null;
pw_elm = document.getElementById('pw');
adm_elm = document.getElementById('admButton');
if (pw_elm) {
pw_elm.value = "";
}
if (adm_elm) {
adm_elm.className = "skjul";
}
}
</script>
</head>
<body>
<input id="pw" class="skjul" type="text" value="pass"> <!-- tekst til password -->
<input id="admButton" class="skjul" type="button" value="Admin">
</body>