搜尋 Mozilla 技術支援網站

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

Learn More

Having problems setting focus to a input field after a javascript alert call

  • 無回覆
  • 12 有這個問題
  • 3 次檢視
more options

I was programming and when making a function call to check the length of a input field and returning focus to this field if it failed to check I make an alert box for the user to let them know that it failed the check and then return the focus back to the input field, however this input field does not get the focus in Firefox. this does work in all other browser, IE, Opera, Safari. Your help in the matter would be appreciated. Thank You

I was programming and when making a function call to check the length of a input field and returning focus to this field if it failed to check I make an alert box for the user to let them know that it failed the check and then return the focus back to the input field, however this input field does not get the focus in Firefox. this does work in all other browser, IE, Opera, Safari. Your help in the matter would be appreciated. Thank You