Cannot set property innerhtml of null. If javascript. cannot set properties of null (setting 'onclick'). innerhtml js. функция if js.