Mozilla 도움말 검색

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

자세히 살펴보기

"TypeError: can't access dead object" ?!

  • 2 답장
  • 1 이 문제를 만남
  • 11 보기
  • 최종 답변자: cor-el

more options

Hi all , i was trying to make a simple javascript code to make an new element by clicking a link and onclick it will call a function make the new element like that :

<html>
<head>

<title>Welcome to javaScript DOM...!</title>
</head>
<body id="body">
<a href="#" id="create" onclick="Create_Element()">Click To Create Element ...! </a>

<script>
function Create_Element(){
var body = document.getElementById("body");
var new_element = document.createElement("b");
new_element.innerHTML="Welcome To The New Element ... :)";
body.appendChild(new_element);
}
</script>
</body>
</html>

but it didn't work so i hit ctrl+alt+j to see the error and it get this : "

PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode
TypeError: can't access dead object dvsyoutubedownloader.js:1190
PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode
TypeError: can't access dead object dvsyoutubedownloader.js:1190
PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode
TypeError: can't access dead object

" and i test the code in another browsers it worked successfully , i wanna now the error ?!

Hi all , i was trying to make a simple javascript code to make an new element by clicking a link and onclick it will call a function make the new element like that : <pre><nowiki><html> <head> <title>Welcome to javaScript DOM...!</title> </head> <body id="body"> <a href="#" id="create" onclick="Create_Element()">Click To Create Element ...! </a> <script> function Create_Element(){ var body = document.getElementById("body"); var new_element = document.createElement("b"); new_element.innerHTML="Welcome To The New Element ... :)"; body.appendChild(new_element); } </script> </body> </html></nowiki></pre> but it didn't work so i hit ctrl+alt+j to see the error and it get this : " <pre><nowiki>PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode TypeError: can't access dead object dvsyoutubedownloader.js:1190 PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode TypeError: can't access dead object dvsyoutubedownloader.js:1190 PluralForm.jsm: Index #2 of '#1 repeat;#1 repeats' for value 3 is invalid -- plural rule #12; called by WCF_mergeFilteredMessageNode TypeError: can't access dead object</nowiki></pre> " and i test the code in another browsers it worked successfully , i wanna now the error ?!

글쓴이 cor-el 수정일시

모든 댓글 (2)

more options

hi, unfortunately we cannot assist you with questions related to web development in this forum (please refer to our Mozilla Support rules and guidelines) - you could use other resources like http://forums.mozillazine.org/viewforum.php?f=25 or the forums at stackoverflow.com for that purpose.

thank you for your understanding!

more options

That code works fine for me.

data:text/html;charset=utf-8;base64,PGh0bWw+CjxoZWFkPgoKPHRpdGxlPldlbGNvbWUgdG8gamF2YVNjcmlwdCBET00uLi4hPC90aXRsZT4KPC9oZWFkPgo8Ym9keSBpZD0iYm9keSI+CjxhIGhyZWY9IiMiIGlkPSJjcmVhdGUiIG9uY2xpY2s9IkNyZWF0ZV9FbGVtZW50KCkiPkNsaWNrIFRvIENyZWF0ZSBFbGVtZW50IC4uLiEgPC9hPgoKPHNjcmlwdD4KZnVuY3Rpb24gQ3JlYXRlX0VsZW1lbnQoKXsKdmFyIGJvZHkgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiYm9keSIpOwp2YXIgbmV3X2VsZW1lbnQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJiIik7Cm5ld19lbGVtZW50LmlubmVySFRNTD0iV2VsY29tZSBUbyBUaGUgTmV3IEVsZW1lbnQgLi4uIDopIjsKYm9keS5hcHBlbmRDaGlsZChuZXdfZWxlbWVudCk7Cn0KPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPg==


Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.

  • Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
  • Do NOT click the Reset button on the Safe Mode start window

글쓴이 cor-el 수정일시