My code shows this error in the console:
Uncaught TypeError: confirm is not a function
I can resolve it by renaming the input to something other then "confirm".
Why would naming an input conflict with JavaScript's confirm function?
<form action="" method="POST">
<input type="text" name="confirm">
<input type="submit" onclick="return confirm('Text')">
</form>