Exemple de formulaire :
<form method="post" action="/action.php">
<p>Email : <input type="text" name="email" id="email"/></p>
<p>Mot de passe : <input type="password" name="password" id="password"/></p>
<p><input type="submit"/></p>
</form>
Action
<script type="text/javascript"><!--
document.getElementById('password').focus(); //-->
</script>