Salut,
Voila un ptit exemple:
<html> <head> <title></title> </head> <body>
<form action="page.html" method="post"> <input type="text" name="toto" value=""> <input type="submit" value="Ok"> </form>
<script language="javascript"> <!-- //Ici on donne le focus a toto document.forms[0].toto.focus(); //--> </script>
</body> </html>
------------------------------- Réponse au message : -------------------------------
Bonjour,
Comment fait on pour donner le focus à un champ (par exemple une zone de texte) se trouvant dans un formulaire.
Merci d'avance.
Christelle
|