[HTML/Javascript] curseur au chargement
Fermé
GGYE
Messages postés
24
Date d'inscription
dimanche 25 avril 2004
Statut
Membre
Dernière intervention
14 juillet 2004
-
14 juin 2004 à 16:56
Utilisateur anonyme - 25 juin 2004 à 08:01
Utilisateur anonyme - 25 juin 2004 à 08:01
A voir également:
- [HTML/Javascript] curseur au chargement
- Telecharger javascript - Télécharger - Langages
- Editeur html - Télécharger - HTML
- Comment retrouver le curseur sans souris - Guide
- Br html ✓ - Forum Webmastering
- Html download - Télécharger - HTML
1 réponse
Utilisateur anonyme
25 juin 2004 à 08:01
25 juin 2004 à 08:01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Author: Philippe Fery --> <html> <head> <title>Focus</title> <script language="javascript" type="text/javascript"> function forceFocus(elmRef){ if(navigator.appName=="Microsoft Internet Explorer"){ document.all(elmRef).focus(); }else if(navigator.appName=="Netscape"){ document.getElementsByName(elmRef)[0].focus(); } } </script> </head> <body onload="forceFocus('last');"> <table> <tr> <td>Last name:</td> <td><input onclick="forceFocus('first');" onchange="forceFocus('first');"type="text" name="last" /></td> </tr> <tr> <td>First name:</td> <td><input onclick="forceFocus('last');" onchange="forceFocus('last');" type="text" name="first" /></td> </tr> </table> </body> </html>
;-)