Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

IE reloads frame when not needed

I've got simple form with a text box. I enter some text in the text box and press the Enter button, but IE reloads the whole frame. Why? How can I avoid this reload? (I have a javascript which handles when user presses enter, but I left it out from this sample to make things easier.)

<form>
Input Text:
<input type="text" name="textentry" >
<br>
<select size="8">
   <option>one
   <option>two
   <option>three
</select>
</form>

Thank you for your help,
Levente
0
Levente
Asked:
Levente
  • 3
1 Solution
 
lexxwernCommented:
<form onsubmit="return flase;">
Input Text:
<input type="text" name="textentry" >
<br>
<select size="8">
  <option>one
  <option>two
  <option>three
</select>
</form>



please try this.
0
 
lexxwernCommented:
oops typo.
 <form onsubmit="return false;">
0
 
LeventeAuthor Commented:
Works! Thank you!
0
 
lexxwernCommented:
glad to help! thanks for the A!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now