Agrandi linee una cosa del genere
codice:<form name="form1" method="post" action=""> <input name="url" type="text" id="url"> <input type="button" name="Submit" value="invia" onClick="if(document.form1.url.value==''){alert('Inserisci un url');document.form1.url.focus()}else{location.href=document.form1.url.value}"> </form>![]()