+ 9
createElement() is not defined
why? i write my code is VS code so i cant post it here😅😅 i heard it not just me who faces with this issue...
7 Respostas
+ 8
So perhaps post your code here instead having us guessing?
also, have you used it like this?
createElement(....)
or like this?
document.createElement(....)
+ 5
Still.... an actual code would be easier to debug......
+ 2
Ben Bright its 1 years ago maybe😅
is that really matter? i tought the browser's version that......
+ 1
Burey
thanks! but i will tell you the details:
1. my code didnt need window.onload because nothing that like document.getElementById or anything before
2. i googled and i find some people have some issues like that
3. i tried the solutions and it didnt work
+ 1
which vscode version are you running if I may ask. Because it works perfectly fine for me on version 1.27.1
0
Burey i use it like this
document.createElement(...)
More Like this:
function addItemTodo(text){
var x = document.createElement("div");
x.innerTEXT = text;
document.body.appendChild(...);