Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why this plain html get submitted , please have a look

Status
Not open for further replies.

kuha

Technical User
Oct 23, 2001
14
US
Hi friends,
please look into the code iam sending, I am facing problem in this small html code. I have not submit or action tag in this html but if u keep cursor on text box and hit Enter Key it submits entair page. i want to know why this is happening.
Please copy the code and open in IE browser.
keep cursor on text box and hit enter key, u can see that page get submitted. please can any one explain why this event is happening.
Thanks in advance for all the help
Harish

<HTML><HEAD>

<TITLE>Supervisor: Policy Details [direct return]</TITLE>


</HEAD><BODY BGCOLOR=&quot;FFFFFF&quot; TEXT=&quot;000000&quot; LINK=&quot;000099&quot;
VLINK=&quot;0000CC&quot; ALINK=&quot;CC0000&quot; TOPMARGIN=&quot;0&quot; LEFTMARGIN=&quot;5&quot;
MARGINHEIGHT=&quot;0&quot; MARGINWIDTH=&quot;5&quot; >

<!-- BEGIN HEADER TABLE -->

<!-- END HEADER TABLE -->
<!-- BEGIN SIDEBAR -->

<TABLE WIDTH=&quot;679&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot;>
<TR><TD ALIGN=&quot;left&quot; VALIGN=&quot;top&quot; WIDTH=&quot;1&quot;>
<BR>

</TD><TD ALIGN=&quot;left&quot; VALIGN=&quot;bottom&quot; width=&quot;12&quot;>
 
<FORM>
</TD><TD WIDTH=&quot;660&quot; ALIGN=&quot;center&quot; VALIGN=&quot;bottom&quot;>

<!-- BEGIN GUTS -->

<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot;>
<TD ALIGN=&quot;left&quot; VALIGN=&quot;bottom&quot;>

<!-- BEGIN GUTS: TABLE 1 -->

<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot;>
<TR><TD ALIGN=&quot;left&quot; VALIGN=&quot;bottom&quot; >
Manufacturer Name
</TD><TD ALIGN=&quot;left&quot; VALIGN=&quot;bottom&quot;>
<INPUT TYPE=&quot;text&quot; NAME=&quot;&quot; SIZE=&quot;35&quot; VALUE=&quot;&quot;>

</TD></TR>
</TABLE>

<!-- END GUTS: TABLE 1 -->
<!-- BEGIN GUTS: TABLE 2 -->

<!-- END GUTS: TABLE 2 -->

</TD></TABLE>

<!-- END GUTS -->

</TD></TR></TABLE>
</form>
</BODY></HTML>
 
I suspect it's because you have a form tag in there. It looks like IE wants to submit the form even though you don't have a submit button or an action to perform. You can get rid of the problem by changing your form tag to:
Code:
<form onSubmit=&quot;return false&quot;>
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thanks Tracy Dryden, it worked.
Harish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top