+ 3

Why am i not able to set the display of div with id page2 as none?

I am really very very annoyed because of this problem cause I have been battling with this problem for past 30 mins 🙇🙇🙇🙇 hope you can help me https://code.sololearn.com/WH1dAbhm8xzw/?ref=app

26th Jul 2017, 1:07 PM
_Retr0/-
_Retr0/- - avatar
2 odpowiedzi
+ 14
You override the "onload" event thus only the last onload is executed..... Try : addEventListener("load",functionHere); instead of onload=functionHere
26th Jul 2017, 1:13 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
okay so the second onload overrides the first one ? I thought they add up 😐😐 the that solved my problem
26th Jul 2017, 1:15 PM
_Retr0/-
_Retr0/- - avatar