I think this is the solution that you need:
<input onclick="window.location.href = '/#functioncode';" type="submit" value="Submit request" />
Found in a different stack. Normally I use this to redirect to a 'Thank You' page to track conversions, but it should work equally well with your anchor.
I think this is the solution that you need:
<input onclick="window.location.href = '/#functioncode';" type="submit" value="Submit request" />
Found in a different stack. Normally I use this to redirect to a 'Thank You' page to track conversions, but it should work equally well with your anchor.
Here's what it looks like in your full code:
<form method="post" onsubmit="functionCookie(this); return false;">
<input required style="display: block; width: 69%; height: 50px; margin-right: 1%; float: left; border: 2px solid #333;" type="text" placeholder=" Password Here" name="password" id="functionUserPassword">
<input style="display: block; margin: 0px; width: 30%; height: 50px; background-color: #333; color: #fff;" type="submit" value="Submit">
<input onclick="window.location.href = '/#functioncode';" type="submit" value="Submit request" />
</form>