I have an html form that asks the user to input one line of text into a text box then press "submit". My problem is if the user enters the text then hits return an error pops up
"HTTP Error 404
404 not found
The web server cannot find the file..."
What code can I put into the form to either submit the form upon the user hitting the return key or does nothing until the user selects the submit button?
My current code is:
<form name="TextForm" onSubmit="location.href='../../_derived/nortbots.htm';return false;" action="../../_derived/nortbots.htm" method="POST" webbot-action="--WEBBOT-SELF--" WEBBOT-onSubmit="setVars();return false;">
Owner Name: <BR><INPUT
name=owner size=17 value=Smith>
<FORM name=TextForm onsubmit="setVars();return false;">
<input type="submit" value="Submit" name="submit"><br>
<b>Note:</b><font color="#ff0000" size="-1">Enter the Owner's last name (or the first few letters). A list of potential matches will be displayed.</font> </FORM>
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple.
The most impor…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5.
Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display
HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5.
Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …