Uncaught TypeError: Cannot read property ‘appendChild’ of null

There isn’t an element on your page with the id “mainContent” when your callback is being executed.

In the line:

document.getElementById("mainContent").appendChild(p);

the section document.getElementById("mainContent") is returning null

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)