1

This is for a homework assignment... The page is definitely incomplete, but i should still be able to call my function with the submit button, correct?

I keep receiving errors the file cannot be found, OR the form will not process.

<!DOCTYPE HTML> 
<html> 
    <head> 
        <title>Example</title> 
         <script type="text/javascript">
         function f1(){
            document.writeln("Hello"); 
            };
        </script>  
    </head> 
    <body>

        <form>
            Customer Name: <input type = "text" id = "cusName"/>
             </p>
         Delivery Date: <input type = "text" id="delDate"/>
             </p>
         Number of items: <input type = "text" id = "numItem"/>
            </p>
       <button onlick="f1();return false">Submit</button>
         </form>

    </body> 
</html> 

1 Answer 1

3

There is a typo here in your button you typed "onlick" instead of onClick

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you so much. That's exactly what it is. It's amazing what a 2nd set of eyes will do.
Happy it helped , please accept my answer as the right answer so others can know it worked for you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.