I've made this function that gives the error
Cannot read property 'style' of null
Can you please help me figure out what the problem is?
function cade()
{
var a = document.getElementById(this.id).style.top;
a = a + 100;
document.getElementById(this.id).style.top = a+'px';
}
cade.call(document.getElementById("p"));