Chrome page refresh problem
Pressing enter inside a textbox refreshes the whole page in Google Chrome.
p开发者_Go百科lease help me outPressing Enter in an input field submits a form which, depending on your form's action attribute, may well be submitting the form to the same page (causing it to appear like a refresh). This is intended behaviour. If you're talking about a text-area, then that's an entirely different matter (and is probably relating to some custom JavaScript event).
If this isn't what you mean, you're going to need to clarify your question. At the very least, please post the excerpt of HTML that encompasses your <form> tags.
精彩评论