gecko-dev/dom/events/crashtests/135345-1.html

15 строки
382 B
HTML

<html>
<body>
<form name="frmlogin">
<input type="text" name="username"
onfocus="frmlogin.username.select();"
onblur="frmlogin.password.focus();">
<input type="password" name="password"
onfocus="frmlogin.password.select();">
</form>
<script language="JavaScript">
document.frmlogin.username.focus();
</script>
</body>
</html>