code_junkie

How to reproduce: Script Error, “Object does not support this property or method.”

Nov 12th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var myEl = document.getElementById('myElement');
  2. myEl.appendChild(...)
  3.  
  4. function myFunc() {
  5. alert('a');
  6. var myEl = document.getElementById('myElement');
  7. myEl.appendChild(something);
  8. alert('b');
  9. // more code
  10. }
  11.  
  12. var blah = {};
  13. blah.methodWhichDoesntExist(); // <-- error
Add Comment
Please, Sign In to add comment