mardi 25 septembre 2018

JavaScript Firefox-Addon which closes specified windows

right now I started coding in javascript (only for private firefox addons) and I want to make an addon which closes all windows which have the html title "Loading...". So right now I have prepared everything for the addon and I have only to code the script:

var titel = document.title;

if (titel === "Loading...") {
windows.close();

}

sooo this complete if statement doesen't work and i don't know why.

I thank you all which will answer my qeustion!

Aucun commentaire:

Enregistrer un commentaire