"TypeError: can't access dead object" ?!
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 ?!
Athraithe ag cor-el ar
All Replies (2)
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!
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
Athraithe ag cor-el ar