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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -