grazie. è possibile anche inserire il prompt all'inizio del campo text poichè questo campo ha già del testo dentro?Originariamente inviato da webdemo
Prova con JS:
codice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>focus su input</title> <script type="text/javascript"> function webdemofocus(){ document.getElementById('inputfocus').focus(); } </script> </head> <body onload="webdemofocus()"> <form action=""> <input name="testo" type="text" id="inputfocus" /></p> </form> </body> </html>
chiaramente e' un esempio, il form va costruito...
ciaux![]()

Rispondi quotando