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>
Propriété innerHTML
<html>
<head>
<script>
function changeLink()
{
document.getElementById('myAnchor').innerHTML="Blog technique";
document.getElementById('myAnchor').href="http://http://blogtechnique.easywebinterface.info/";
document.getElementById('myAnchor').target="_blank";
}
</script>
</head>
<body>
<a id="myAnchor" href="http://www.microsoft.com">Microsoft</a>
<input type="button" onclick="changeLink()" value="Change link">
</body>
</html>