qualcuno sa come lanciare a macchina?
Sto cercando di fare questo:
var script:HTMLScriptElement = document.getElementsByName(script)[0];
alert(script.type);
ma mi sta dando un errore:
Cannot convert 'Node' to 'HTMLScriptElement': Type 'Node' is missing property 'defer' from type 'HTMLScriptElement'
(elementName: string) => NodeList
Non posso accedere al membro 'tipo' dell'elemento script a meno ho gettato al tipo corretto, ma non so come fare. ho cercato la documentazione e campioni, ma non ho trovato nulla.













