Alert the destination of form

I have a form which I want to see where it’s directing.

[B]onclick="alert(window.location);"[/B]

That doesn’t seem correct. How do I do it?

Just as a guess:

onclick="alert(document.formname.action);"

?

I just tried the code I posted above, and it works when the onclick is put on the submit button.