搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

My website forms not working in Mozilla

  • 22 回覆
  • 4 有這個問題
  • 13 次檢視
  • 最近回覆由 paulhraines

more options

I have a rather "weird" problem with Mozilla web browser.

I created a website which contains many basic forms, built with HTML5 (for example : simple login form, which asks for a user's login and password).

It's a very simple and basic login form; it is submitted when the user clicks the "submit" button.

Here is the code :

 <form id="myform" action="login.php" method="post">
 Username : <input type="text" name="username" minlength="4" required/>
 Password : <input type="password" name="password" minlength="8" required />
 <input type="submit" name="submit" id="submit" value="Log In"/>


The problem I am having is with Mozilla Firefox browser.

My form works with EVERY browser out there : Chrome, Safari, Opera, IE, etc

When I open the form in other browsers, the cursor is blinking in the "Username" field, of course. As it should be.

But, when I open this form in Mozilla, there is no cursor blinking. I cannot write anything in the username or password fields. (It is as though the fields have been DISABLED, or set to READ-ONLY)

But, when I click on the "Log In" button, then an error-alert message pops up, saying : "Username is a required field" (obviously).

Then --- and only then --- the cursor finally appears in the Username text-box, and I am able to provide the login credentials.

I find this rather amusing. But, it certainly won't be amusing to someone who is trying to log into my website with Mozilla Firefox!

What could the problem be?

I know there is nothing wrong with my code, because the form works in ALL browsers. It even works in Mozilla, too...........but only AFTER I have clicked on the "submit" button, and then I am prompted to input the login credentials.

I have a rather "weird" problem with Mozilla web browser. I created a website which contains many basic forms, built with HTML5 (for example : simple login form, which asks for a user's login and password). It's a very simple and basic login form; it is submitted when the user clicks the "submit" button. Here is the code : <form id="myform" action="login.php" method="post"> Username : <input type="text" name="username" minlength="4" required/> Password : <input type="password" name="password" minlength="8" required /> <input type="submit" name="submit" id="submit" value="Log In"/> The problem I am having is with Mozilla Firefox browser. My form works with EVERY browser out there : Chrome, Safari, Opera, IE, etc When I open the form in other browsers, the cursor is blinking in the "Username" field, of course. As it should be. But, when I open this form in Mozilla, there is no cursor blinking. I cannot write anything in the username or password fields. (It is as though the fields have been DISABLED, or set to READ-ONLY) But, when I click on the "Log In" button, then an error-alert message pops up, saying : "Username is a required field" (obviously). Then --- and only then --- the cursor finally appears in the Username text-box, and I am able to provide the login credentials. I find this rather amusing. But, it certainly won't be amusing to someone who is trying to log into my website with Mozilla Firefox! What could the problem be? I know there is nothing wrong with my code, because the form works in ALL browsers. It even works in Mozilla, too...........but only AFTER I have clicked on the "submit" button, and then I am prompted to input the login credentials.

所有回覆 (2)

more options

You can check your js extension whether it is true or not just type about:support. See there the troubleshooting info available check it and see if you can fix it from there.

more options

kushagra said

You can check your js extension whether it is true or not just type about:support. See there the troubleshooting info available check it and see if you can fix it from there.


extensions.lastAppVersion = v 39.0

Javascript Incremental GC = true

(as I mentioned earlier, if I disable JS, then the form works)

  1. 1
  2. 2