You don't need to bother about coding, just understanding my weird English :)

Use this example of a form to return the viewer to the same page they left without having to use an exact return URL.

This is useful for creating a number of forms on different pages.

The value of elements[1] equals the line to be used, if you've placed input type="hidden" name="return" value="" on the first input line below the "form name" line, then the elements value would be [0], the second line down would be [1] etc.

Here's the code you add to your form line:
onsubmit="document.myForm.elements[1].value=window.location;

You can see the [1] this means the return info is on line two below the form name line.

In my example, the 'return' line is the second input line. If my return line was the first line below the form name line, then I would use [0].