input type="text"

Hello Everyone,
    I'm new to this HTML thing to bare with me...
    I have a textbox that I have created..
    on the left side i have an iframe
    When i type something in the textbox and press enter..
    the page in the iframe resets..

   Is there a way for that event to stop?


thnx in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Please post some of your html,

I think you have something like

<form target="myIframeName" .... >

  <input type="text" .... />


On pressing return/enter in the textbox, you form gets submitted. Depending on your form your whole window, or just the iframe will be refreshed.

tony_813Author Commented:


<iframe id="objTime" style="HEIGHT: 95%; LEFT: 17%; OVERFLOW: auto; POSITION: absolute; TOP: 5%; WIDTH: 85%" height="400" width="1000" scrolling = "Yes" src="" frameborder="1"></iframe>


  <form id="form1"><table>
        <tr><td><input type="button" id="cmdEnter" value="    Phone Book    " onclick="cmdEnter_onclick()" /></td></tr>
        <tr><td><input type="text" id="txtEntry" style="text-align:center; background-color:Olive"/></td></tr>
        <tr><td style="FONT-SIZE: 12px">&nbsp;<input name="radSelect" style="width: 16px" type="radio" value="Schedule" onclick="cmdTimeSheet_onclick()"/>Schedule &nbsp;
                                              <input name="radSelect" style="width: 16px" type="radio" value="Links" onclick="cmdTimeSheet_onclick()"/>Work Links</td></tr></table></form>

tony_813Author Commented:
Is there a way for it not to be sumbitted.. because i'm acually not sumbitting anything...?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

<form onsubmit="return false">


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Or if it is not a form to be submitted in any way, just dont put in the <form> tags.  It is possible to have input fields which are not associated with a form, just be careful you are not refering to the items as elements in the form and are refering to them by ID in your scripts.

Hope that helps.

Otherwise, this is an odd/intriguing 'feature'.  What browser are you using? ('Cause I really dont think that is 'normal' behavior).  
tony_813Author Commented:
That did the job Roonaan...... thnx

CaveyCoUK, I am currently using IE 6

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

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.