ok,this works
<a href="somepage.htm" onClick="javascript:document.myForm.submit();">submit</a>

but I need to run use a confirm box before I submit the form.

so I am trying this:

<script>
function ConfirmDelete()
{
if (!confirm)
{return false;}
else
{document.myForm.submit;}
</script>

I don't get an error message but it dosen't submit the form either.

I tried to use location.href but i need to pass some name/value pairs and i couldn't get the variables into my javascript from the asp.


any suggestions?

thanks