0 javascript search input location-href
我用javascript有点麻烦.
这是搜索框:
<input id="lala" onkeypress="lala(event)" />
Run Code Online (Sandbox Code Playgroud)
这是脚本:
<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>
Run Code Online (Sandbox Code Playgroud)
什么时候做一个javascript警报,它看起来很好,但我不能去URL.
| 归档时间: |
|
| 查看次数: |
1531 次 |
| 最近记录: |