我的页面上有一个要发送到 javascript 函数的 html 表单。如何向该函数发送值/激活它以便函数运行?
<form method="post" action="WHAT GOES HERE?">
<input type = "textarea" name = "link" placeholder="Submit a Link" style="color:black;max-width:133px;"></input>
<input type = "hidden" name = "ref" value="yes"></input>
<a href="javascript:void(0)" onclick="submit();">Submit</a>