Let’s say I have a form:
<form id = "form1" action = "process.php" method = "post">
...
</form>
Now, submitting it from JavaScript using link would look like this:
<a href='javascript:document.forms["form1"].submit()'>Submit</a>
How do I do the same with Dart-lang?
I don’t think you can use inline dart script inside
hrefattribute of<a>.However, you can add a onClick handler on your anchor :
And your anchor can look like :
If you need to retain the hand cursor (because it’s now gone after taking the useless
href) or style it otherwise, just use CSS: