
aqui mi form:
Código:
y la funcion del text<form name="frmbuscador" id="frmbuscador" method="get" action="./" onSubmit="valueNULL();"> <fieldset> <label><input name="WebSearch" type="text" class="inputsearch"/></label> <label style="padding-left:19px;"><input type="submit" value=" " class="btnsearch" /> </label> </fieldset> </form>
Código:
function valueNULL(){
var texto = document.frmbuscador.WebSearch.value;
if(texto.length == 0){
texto='mi web';
}
return texto;
}
que hago mal?


