Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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!

https://w.trhou.se/f1vg68qig1

1 Answer

Steven Parker
Steven Parker
231,275 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!