GSG-G8 / W2-MOAA-E-Commerce

Mariam,Omar, Alaa, Ahmad
https://gsg-g8.github.io/W2-MOAA-E-Commerce/.
1 stars 0 forks source link

Adding Style by JS #46

Open fadeomar opened 4 years ago

fadeomar commented 4 years ago

https://github.com/GSG-G8/W2-MOAA-E-Commerce/blob/f28c10b4b1a5a907f07f5b50b0fba00966a47287/js/popup.js#L9-L11

first of all, you have to be constant like using querySelector or getElementById the querySelector return the first descendant element of baseElement which matches the specified group of selectors. which means it works same or better then getElementById also adding style : you can set the display none in line 9 like in line 11 or the opposite the metter is been constant