so i am new so i dont know where to post this so i decided here would be good.....

any way i have to make a form ,which ask for name and the country they are in,i have written and tested the code and it's ok,i have also got a submit and a reset button.Here is the code:

<title>Country of residence</title>


<h1>Country of residence</h1>
<form name="Country of residence" method="post" action=sucess.html >
<table width="50%" border="0"

<td id="name">Name</td>
<td><input type="text" name="name"/></td>
<td id="country">Countryt</td>
<td><input type="text" name="country"/></td>

<td><input type="submit" name="submit" value="Submit" onclick=return validate Form();" /></td>

<td><input type="reset" name="Reset" value="Reset" /></td>


as you can see on clicking submit,there should be validation of field,so far i have spend hours trying to find the right code but failed each time,instead of validating it just goes straight to sucess.html which say says thank you,

what i want to do is make the text field must so if they are empty a pop up comes up when sumbit is clicked,if either of them is empty