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 1015261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:22:29+00:00 2026-05-16T10:22:29+00:00

I have a form like this: <form id=form_main name=form_main action=/search/ target=iframe001 method=get onSubmit=reset_and_subm();> Enter

  • 0

I have a form like this:

<form id="form_main" name="form_main" action="/search/" target="iframe001" method="get" onSubmit="reset_and_subm();">

Enter key wont submit this form in IE6, but will in Chrome, FF, Opera, Safari, and IE8 (haven’t tested IE7 yet).
IN FACT, NOT EVEN PRESSING THE SUBMIT BUTTON SUBMITS THE FORM.
I have tried for hours now… What could be the problem?
I have tried this:

<form id="form_main" name="form_main" action="/search/" target="iframe001" method="get" onSubmit="alert('hello');">

And the alertbox comes up with the message…

Now here is the function “reset_and_subm();”

function reset_and_subm(){
    document.getElementById("p").value = 1;
    return true;
}

Does anybody know what I should do here?

Btw, I have checked all inputs in the form, and all seem okay… So assume there is nothing wrong with the content of the form.

Thanks

UPDATE:

I have a submit button yes.
The entire form content is way to large to put here, but it contains only one textfield.
The rest is “selects” and “hidden inputs”.
I am pressing enter in the only textfield there is…
Also I have added the code of the submit button:

<input name="nav_querystring" type="text" id="nav_querystring" style="width: 240px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold;" value="">

<input type="submit" name="nav_submit" id="nav_submit" value="Sök" style="width: 55px; font-size: 13px;">

UPDATE2:

Just to point out, I have included the js file which contains the function “reset_and_subm” and also, I am using mod_rewrite in .htaccess to rewrite the action of the form.
I hope none of this is causing the issue.

UPDATE3:
Seems the problem might lie in the body OnLoad eventy, where I have a js function not listed here.
Doesn’t IE6 support OnLoad?
What should I use instead…

Here is my current code:

  <body onLoad="subSelection();">

Thanks

  • 1 1 Answer
  • 1 View
  • 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-16T10:22:30+00:00Added an answer on May 16, 2026 at 10:22 am

    I have made two changes to your code.

    As you are calling a function from onsubmit, I have included the “return” keyword in the method call.

    As the form only has one form element, I have added a hidden element to the form.

    <form id="form_main" name="form_main" action="/search/" target="iframe001" method="get" onSubmit="return reset_and_subm();">
        <div style="display: none;"><input type="text" name="ie6"></div>
        <input name="nav_querystring" type="text" id="nav_querystring" style="width: 240px; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold;" value="">
        <input type="submit" name="nav_submit" id="nav_submit" value="Sök" style="width: 55px; font-size: 13px;">
    </form>
    

    Please shout if you are still stuck.

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

Sidebar

Related Questions

I have a form like this: <form id=loginCompact action=https://externalsite... name=sportsbook method=post onsubmit=createCookie('BRLOG', document.sportsbook.username.value, 1)>
I have a simple form like this : <form method=post name=change_pass id=change_pass action=change_pass2.php> <input
I have form like this: <form method=POST action=<?php echo base_url() ?>admin/admin_search> <fieldset> <label for=nalozi>Nalozi</label><input
I have a form like this: <form action=form_send.php method=post> <table> <tr> <td><label for=address>address</label></td> <td><input
I have a form like this: <form id=surveyForm method=post action=submit.php> <input type=text id=good value=0
I have a form, like so: <form action= method=post> <select name=pageType> <option value=main>Main Page</option>
I have form like this: <div class=satu> <input type='text' size='1' maxlength='1' name='score[1][]' id='score[1][]'> </div>
Suppose I have a form like this: Name:<input type=text name=xxx id=name/> Type:<select> <option>xx</option> <option>xx</option>
I have simple form like this which accepts only two values string action and
I have a bunch of name/email fields in my form like this: data[Friend][0][name] data[Friend][1][name]

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.