a
and try to submit the form, Internet Explorer does not even try to submit the form.
Is there a way to let me know that this has happened, and let the user know that this is an alarm?
Check the regular expression to test it.
If you If you want users to make a decision, please use confirm().
If you just want to remind them instead of testing their value, you can use the following:
< pre>
Here are some The sample code can get the value from the JavaScript function call in onclick():
hello world< /title>
I have a form with input type=file. Internet Explorer allows users to type whatever they want in the input (and Firefox will bring up the file selector). If the user enters a blatantly invalid name, for example:
a
and try to submit the form, Internet Explorer does not even try to submit the form.
Is there a way to let me know this Has happened, let users know that this is an alarm?
You should add an “onclick()” event to the submit button, which calls a JavaScript function to test your conditions and use JavaScript to “warn” Let users know that they need to enter something worthy of submission.
View regular expressions for testing.
If you want users to make a decision, use confirm().
If you just want to remind them instead of testing their value, you can use the following:
Here are some sample codes that can be called from the JavaScript function in onclick() Get the value in:
< br />
hello world
head>