Reputation: 1
I have a little trouble with javascript.
This is the search box :
<input id="lala" onkeypress="lala(event)" />
This is the 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 do a javascript alert, it appears well, but I cant go to URL.
Upvotes: 0
Views: 1558