본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Form submission is not responding in Firefox version 55 and above

more options

I have a form which will be submitted either in same window or in new tab based on radio button selection. There are two radio input buttons (radioA and radioB) and a button element (submitButton) which will handle form submission using javascript. By default, form will have target value as _self.

  • If radioA is selected by user and on click of submitButton, target value will be changed to "_self" (only if it is _blank) and form will be submitted using javascript (document.formName.submit();).
  • If radioB is selected by user and on click of submitButton, target value will be changed to "_blank" (document.formName.target="_blank") and form will be submitted using javascript (document.formName.submit();).

The above functionality is working fine in all browsers except Firefox version 55 and above. I noticed that latest versions of Firefox is not responding when target value is changed. To confirm this i skipped the logic to modify target value and noticed the functionality working even in latest Firefox versions.

Could you please let me know if this is a known issue or when this will be resolved. And let me know if more details required.

Thanks, Nanda

I have a form which will be submitted either in same window or in new tab based on radio button selection. There are two radio input buttons (radioA and radioB) and a button element (submitButton) which will handle form submission using javascript. By default, form will have target value as _self. * If radioA is selected by user and on click of submitButton, target value will be changed to "_self" (only if it is _blank) and form will be submitted using javascript (document.formName.submit();). * If radioB is selected by user and on click of submitButton, target value will be changed to "_blank" (document.formName.target="_blank") and form will be submitted using javascript (document.formName.submit();). The above functionality is working fine in all browsers except Firefox version 55 and above. I noticed that latest versions of Firefox is not responding when target value is changed. To confirm this i skipped the logic to modify target value and noticed the functionality working even in latest Firefox versions. Could you please let me know if this is a known issue or when this will be resolved. And let me know if more details required. Thanks, Nanda

모든 댓글 (2)

more options

Please submit the URL for us to look.

Or run your code by URL or Upload to : W3C.org (World Wide Web Consortium) in charge of standards and practices and future development of web pages and web browsers make the rules on code. Mozilla Firefox follows these rules. W3C.org Who make the rules for web code. HTML https://validator.w3.org/ CSS https://jigsaw.w3.org/css-validator/ and https://validator.w3.org/i18n-checker/ and http://mobile.css-validator.org/

more options

Do you notice any errors in the Browser Console when you toggle the radio buttons or click Submit? See:

https://developer.mozilla.org/docs/Tools/Browser_Console

Does the target attribute get added as expected?

You could try using an onsubmit handler on the form element for this.

<form action="path/to/script" name="f1" onsubmit="targetf1">

function targetf1(){
  if (radioB.checked) {
    document.f1.target = '_blank';
  } else {
    document.f1.target = '_self';
  }
  return true;
}

That was "air code" I haven't actually tested.