Visualizzazione dei risultati da 1 a 3 su 3

Discussione: focus

  1. #1

    focus

    Esiste un comando per forzare il "focus" su un determinato campo.. tipo box testo o menù a tendina?

  2. #2
    Utente di HTML.it L'avatar di v2v2
    Registrato dal
    Sep 2002
    Messaggi
    221
    Intendi che quando viene caricata la pag il campo deve prendere il focus?
    codice:
    <html> 
    <head> 
    <script>
    function c(){
    document.getElementById("voglioilfocus").focus();
    }
    </script>
    </head> 
    <body onLoad="c()"> 
    <input id="voglioilfocus" type="text">
    </body> 
    </html>
    Only the good die young
    all the evil seem to live forever

    :metallica

  3. #3
    perfetto
    Garzie mille
    Se non ci foste voi...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.