Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

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

  • 2 vastausta
  • 1 henkilöllä on sama ongelma
  • 1 näyttö
  • Viimeisin kirjoittaja 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 ?!

Muokattu , muokkaaja cor-el

Kaikki vastaukset (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

Muokattu , muokkaaja cor-el