I need to do some ugly stuff. But I cannot do it another way. what I need is
<a href='some/url/?with¶ms' onclick="(if confirm('Do you wanna submit?')
{some code to submit form in href property})">
but I don’t know how to make inline script work… and I hesitate about the way of submitting it with window.location or document.location. Any ideas?
Try this:
on html:
myValidation.js
I used json and javascript closures on this answer.
Take a look on this: