javascript - windows.location.href doesn't work -
i have little trouble javascript.
this search box :
<input id="lala" onkeypress="lala(event)" />
this script :
<script type="text/javascript"> function lala(e){ tecla = (document.all) ? e.keycode : e.which; if(tecla==13) windows.location.href = 'http://server:100/theme/resumeninstrumento.aspx?nemo=lan'; } </script>
when javascript alert, appears well, cant go url.
it should window
, not windows
:
window.location.href = ....
Comments
Post a Comment