This script is not working, I just want the thumb variable to be created if the thumb id exists, if the script does not exist. It seems that when the thumb does not exist it gives an error and the script does not work. Note: I'm only using Notepad ++, I do not see any error messages.
if(document.getElementeByid("thumb") !== null)
{
var thumb = document.getElementeByid("thumb");
}
comandos;