Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:12:48+00:00 2026-05-16T16:12:48+00:00

I was looking for a fix to stop IE refreshing the page instead of

  • 0

I was looking for a fix to stop IE refreshing the page instead of submitting my single line form, when a user hits enter instead of clicking go.

I found this solution, which works well, but I was wondering if anyone could explain why it works?

The solution I used is to add a hidden text input within the form tags, like this

`<form name="SearchForm" id="SearchForm" method="get" action="">

/*This is the hidden text input*/
<input type="text" style="visibility:hidden;display:none;" name="ieSearchEnter">

</input>
<fieldset>
<span><input type="text" name="Search" id="Search"/></span>
<div class="field actions">
<input type="submit" name="Go" id="Go" class="submit" value="Go"/>
</div>

</fieldset>
</form>`

which i found here.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:12:49+00:00Added an answer on May 16, 2026 at 4:12 pm

    Are you really setting the ACTION value to an empty string, or did you just do that for your code sample?

    I don’t think IE is really “refreshing the page”– I think it’s automatically submitting your form.

    Here’s a simple test page: http://www.enhanceie.com/sandbox/simpleform.asp. When you hit enter, you’ll see that the URL is updated to pass the user’s value.

    IIRC, there is code in IE’s form-handling that says that if you have form containing a single test field, then hitting ENTER will submit that form. In your workaround, you’ve added an additional text field so that optimization is not applied.

    I think maybe your server-side code is REQUIRING that the form submission contains “Go=Go” or it ignores the submitted value (Search=Whatevertheuserhadtyped) and simply re-displays the form. If you change the server-side script such that it does not require Go=Go, then your problem should go away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking to fix my layout of my website. It is somewhat confusing,
I am looking for a recommendation for a FIX library for .Net (C#). It
I am looking since yesterday to fix this problem, I know there are plenty
I'm looking for a way to fix and/or abstract away a comma-separated values (CSV)
he everyone i was looking into this plugin by Zach Dunn found here https://github.com/buildinternet/totem
This may seem like a stupid question, but I've been looking everywhere to fix
I have been looking for few days now to fix the issue of recurring
I've been looking all over and i can't find anything to fix this problem.
I'm looking for an code example of NTP client write in C. I found
so I'm looking at another person's code trying to fix it, and I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.