Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Treehouse Club - MASH MASH - JavaScript Handle Submission and Event Handler Functions

submit button is not working in Java mash course

I am following along with joy on java but when she hits submit on her webpage it shows what her future is. When I try it one mine the page just refreshes but does not show the same image as when joy hits submit. What am I doing wrong? TIA Cheers!


1 Answer

Steven Parker
Steven Parker
216,032 Points

You have not specified the source of the JavaScript code.

<script src=""></script>

You have a script tag, but you left the src attribute empty.

Also remember that "Java" and "JavaScript" are two different languages. There's no "Java" in this course.

That was it, thanks again Steven and I will remember the difference between Java and Javascript. Cheers!