当我在页面上创建单个文本框并按下进入页面刷新? [英] when i create single text box on page and press enter the page refresh ?
本文介绍了当我在页面上创建单个文本框并按下进入页面刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
当我在页面上创建单个文本框并按下输入页面刷新我怎么能停止刷新页面....
>
dhiraj
解决方案
表格标签中ACTION的价值是多少?
创建一个捕获(onkeypress)ENTER键的JavaScript例程并忽略它。
Ronald:很酷:
如果你有< input type =" submit",你可能正在提交你的表格值= [提交" />将其更改为< input type =" button" ....
hi everyone
when i create single text box on page and press enter the page refresh how can i stop to refresh the page....
dhiraj
解决方案
Hi,
What is the value of your ACTION in the form tag?
Make a JavaScript routine that captures (onkeypress) the ENTER keystroke and ignores it.
Ronald :cool:
You are probably submitting your form if you have <input type="submit" value="submit" /> change it to <input type="button" ....
这篇关于当我在页面上创建单个文本框并按下进入页面刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文