亚索皮肤猩红之月壁纸:在设计网页时 要回车进入的代码怎么写的?
来源:百度文库 编辑:高考问答 时间:2024/07/06 11:26:22
就是直接按键盘上的回车就进入指定页面 该怎么写代码?谢谢!!
1:keypreview设置为true 在onkeypress事件里写入 if key=#13 then ..
2:default设置为true 就可以了 但是如果有多个按纽这样设置 默认响应第一个按纽的单击事件
1:keypreview设置为true 在onkeypress事件里写入 if key=#13 then ..
2:default设置为true 就可以了 但是如果有多个按纽这样设置 默认响应第一个按纽的单击事件