Ciao a tutti, sapete spiegarmi cosa significa l'errore:
Uncaught SyntaxError: Unexpected identifier

Nella console di Chorme?

Il codice che mi da errore è questo:

codice:
function execJS(t)
{
 var p1 = 0, p2 = 0, p3 = 0, p4 = 0;
 p1 = t.indexOf("<" + "script", 0);
 if(p1 == -1) return t;
    
 p2 = t.indexOf(">", p1 + 7) + 1;
 p3 = t.indexOf("<" + "/script>", p2);
 p4 = p3 + 9;
    
 var c = t.substring(p2, p3);
 var s = document.createElement("script");
 s.type = "text/javascript";
 s.text = c;
 
 document.getElementsByTagName("head")[0].appendChild(s);
    
 t = t.substring(0, p1) + t.substr(p4);
 return execJS(t);
}
Sulla riga:
document.getElementsByTagName("head")[0].appendChild(s);


Grazie a tutti